HP Forums
HP Prime: CAS Variables - -How to save? - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP Prime: CAS Variables - -How to save? (/thread-254070.html)



HP Prime: CAS Variables - -How to save? - Helge Gabert - 10-27-2013

Is there any way to permanently save the CAS variables, created in CAS view?

They show up in the memory and variable catalogs, respectively, but unfortunately disappear after clearing the CAS history.




Re: HP Prime: CAS Variables - -How to save? - Michael de Estrada - 10-27-2013

Just create them in Home view. They will be available in CAS and other views as User variables.


Re: HP Prime: CAS Variables - -How to save? - Helge Gabert - 10-27-2013

No, maybe I didn't make myself clear.

In Home view I cannot create anything like

g(x):=x^2-x-1

but I can do that in CAS view.

Result (x)->(x^2-x-1).

Now, I can call the numerical solver, e.g.,

nSolve(g(x),x)

Result -.618...

Mem shows CAS Vars, g (Function)

The "Vars" key also shows g in CAS Vars ("All" and "Program").

However, g is gone, once I clear the CAS history. :((

(The reason I need to define g in CAS and not in Home is because a function defined in Home cannot be used with int, solve, nSolve, etc.).

I hope this is clearer now.