Post Reply 
[Request] for renaming variables
05-29-2014, 07:39 AM (This post was last modified: 05-29-2014 08:21 AM by Tugdual.)
Post: #6
RE: [Request] for renaming variables
(05-29-2014 06:15 AM)cyrille de brébisson Wrote:  Hello,

FYI: in cas, you can do:

f(x):=x+1
and then do
F1:=f
This WILL assign X+1 (note the uppercase) to F1.

and without copy/paste.

note, you could also do g(a):=a+1 and F1:=g it will also work.

cyrille
Thanks for mentioning this, very helpful and the beauty of this is that you can on the fly change f(x) and see the plot updated.
Also the 'STO >' key works (no need to enter ':' and '=').

Hmmmmm looks like the Prime starts becoming sexy after all.

Edit: it is also possible to define g(x):=df(x)/dx (btw F1:=df(X)/dX doesn't work) and plot f(X) and g(X) all together. Then later you can change f(x) and see both graphs updated. This is actually much more powerful than copy/pasting from cas to Apps.

Edit: well there is a major drawback with this solution: speed. I didn't notice it when trying on the emulator but when I did the same on the real prime I could notice that the poor little things was on its knees. Just enter f(x):=sin(x) then F1:=f(X) and F2:=2*sin(X) and you'll see how dramatically faster F2 is compared to F1.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
[Request] for renaming variables - Tugdual - 05-28-2014, 08:58 PM
RE: [Request] for renaming variables - Tugdual - 05-29-2014 07:39 AM



User(s) browsing this thread: 1 Guest(s)