HP Forums
Arbitrary integer constant ? - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Arbitrary integer constant ? (/thread-4598.html)



Arbitrary integer constant ? - aiden - 08-30-2015 04:59 AM

Hi,
I'm a looking for symbol regarding arbitrary integer constant in prime hp.

let me give an example for your understanding, (* ti cx has arbitrary integer constant symbol, "n" in the system)
sin (pi/2 * n + pi/4), when n = arbitrary integer constant

Please help me out.


RE: Arbitrary integer constant ? - parisse - 08-30-2015 06:37 AM

Take any variable that is not a HOME variable and run assume, for example
assume(n,integer)


RE: Arbitrary integer constant ? - aiden - 09-01-2015 01:35 PM

(08-30-2015 06:37 AM)parisse Wrote:  Take any variable that is not a HOME variable and run assume, for example
assume(n,integer)

thanks!!


RE: Arbitrary integer constant ? - pwarmuth - 09-04-2015 05:51 PM

How did you ever figure this out,? It does not appear to be documented. integer likewise does not show up in the catalog.

Without you pointing this out, I would have never been able to figure this out. What other keywords are available for use with the assume() command?


RE: Arbitrary integer constant ? - parisse - 09-04-2015 06:31 PM

The HP CAS documentation is not as complete as the Xcas documentation, especially compared to Xcas French documentation. BTW, if someone speaking natively English would is interested to translate the Xcas French doc, please contact me!


RE: Arbitrary integer constant ? - Terje Vallestad - 09-04-2015 06:40 PM

(09-04-2015 05:51 PM)pwarmuth Wrote:  How did you ever figure this out,? It does not appear to be documented. integer likewise does not show up in the catalog.

Without you pointing this out, I would have never been able to figure this out. What other keywords are available for use with the assume() command?


Not so much help but a pointer, the on-calculator help for additionally() has the specific reference to assume(n,integer)

Code:

Syntax: additionally(Expr) 
Used in programming with assume( ) to state an additional assumption about a variable.
Example: assume(n,integer); additionally(n>5); ➔ [DOM_INT, n]

the on-calculator help for assume() states
Code:

Syntax: assume(Expr) 
Make an assumption on a variable. 
Example: assume(a>0) ➔ a . Now solve(a^2=9,a) will return {3} instead of {-3,3}.

Cheers, Terje


RE: Arbitrary integer constant ? - pwarmuth - 09-04-2015 06:48 PM

(09-04-2015 06:31 PM)parisse Wrote:  The HP CAS documentation is not as complete as the Xcas documentation, especially compared to Xcas French documentation. BTW, if someone speaking natively English would is interested to translate the Xcas French doc, please contact me!

I sent you a PM.


RE: Arbitrary integer constant ? - Arno K - 09-04-2015 09:25 PM

(09-04-2015 06:48 PM)pwarmuth Wrote:  
(09-04-2015 06:31 PM)parisse Wrote:  The HP CAS documentation is not as complete as the Xcas documentation, especially compared to Xcas French documentation. BTW, if someone speaking natively English would is interested to translate the Xcas French doc, please contact me!

I sent you a PM.

...but assume and additionally are described in the user guide, in the english one on pages 414 and 415 and there is about, which is not in the manual, and purgte. So you do for example
assume(r,float)
additionally(r>0)
perform what you what
about(r) delivers detailed information about r
purge(r) frees that declaration

Arno


RE: Arbitrary integer constant ? - pwarmuth - 09-04-2015 09:56 PM

Well, I had good intentions but I did not realize that the docs were multiple documents and that some of them are over 800 pages. I've got spare time, but not that kind of time. ABBYY FineReader does a good job of french OCR, but outputting technical formatting like that is not its strong suit and the product of running that text through a translator, even a professional one, is cringe worthy. If I spoke french fluently I'd be more able to help out.

I tried. Sad If I have some sort of breakthrough with this I'll update, but for now I don't expect much.


RE: Arbitrary integer constant ? - pwarmuth - 09-04-2015 10:18 PM

(09-04-2015 09:25 PM)Arno K Wrote:  
(09-04-2015 06:48 PM)pwarmuth Wrote:  I sent you a PM.

...but assume and additionally are described in the user guide, in the english one on pages 414 and 415 and there is about, which is not in the manual, and purgte. So you do for example
assume(r,float)
additionally(r>0)
perform what you what
about(r) delivers detailed information about r
purge(r) frees that declaration

Arno

Now I'm embarrassed. RTFM