How can i define a function for example f(x) = x^2 +8x +4 in den Home-Screen, then calculate f(1), f(2).
Then i want to build the derivate of f(x) in CAS.
Then i want go plot the graph of f(x) and the derivate f'(x).
How can i do this things?
HP Prime - Defining a function
|
10-22-2013, 07:13 AM
10-22-2013, 05:57 PM
I do this like this : To define f :
Edited: 22 Oct 2013, 5:59 p.m.
10-22-2013, 10:26 PM
Quote:
F1:=f('X'); // need ' ' when using global, built-in, non-CAS variables
Edited: 22 Oct 2013, 10:28 p.m.
10-23-2013, 04:09 AM
Thank's ! F1:=fworks fine ;) Edited: 23 Oct 2013, 4:10 a.m.
10-23-2013, 02:13 PM
Many thanks for your replays. The following things are bad:
1. There is no „:=“ key similary to TI NSPIRE.
Questions:
10-23-2013, 02:43 PM
Quote: 1. := can be obtained typing each character using [Alpha][-][Shift][.] 2. Single, capital letters are global, real-valued, system variables; they cannot be deleted. CAS operates with the idea that everything that is not defined is considered symbolic. And if a variable is defined, then its value will always be substituted in first. So for example, if we store 1.25 into 'x', then 1+x is interpreted as 1.25. On the other hand, if 'x' is purged, then 1+x is interpreted as a formula 1+x. 3. Yes, it is. In fact, I would go as far as saying how variables (global, local, within apps, etc) could use an overhaul. 4. [Shift][( )][Backspace] (just get double ' and delete one of them)
5. I am sure there is some "logic" but any time I make an attempt to explain (even to myself) what I think is behind upper vs lower case, I end up finding too many exceptions. I think a large number of problems that arise are the result of a design choice: merging xcas with an HP38GII. The idea itself is fine; but each of those systems has ways of handling variables, command-line input, etc. that are often conflicting at times. Over time, this should be ironed out... Edited: 23 Oct 2013, 2:43 p.m. |
« Next Oldest | Next Newest »
|