How to store exact symbolic results in preconfigured lists L#

07152014, 05:01 PM
Post: #1




How to store exact symbolic results in preconfigured lists L#
Is it possible? For example, v:=e^(2*pi*i/3) is a cubic root of 1, so v^3=1. But L1:=seq(v^k,k=0..3) will return L1(4)=1+3.5527136788e15i instead of 1.


07152014, 09:24 PM
Post: #2




RE: How to store exact symbolic results in preconfigured lists L#
I get the same result as you: I'm using the emulator, I'm in CAS mode and "exact" is ticked. However, if I store the list {v,v^2,v^3} into a CAS variable (e.g., l1) then l(3) is 1. This is reasonable  as I understand it, Home variables (like L1) can only contain numbers while CAS variables can contain expressions.
After typing Code:
Nigel (UK) 

07152014, 10:04 PM
Post: #3




RE: How to store exact symbolic results in preconfigured lists L#
Thanks. But L1:=seq(simplify(v^k),k=0..3) will now return L1(3)=0.50.866025403784*i instead of (1/2)*(1+sqrt(3)*i). I guess one has to make lists in CAS for symbolic display.


07172014, 05:39 AM
Post: #4




RE: How to store exact symbolic results in preconfigured lists L#
Hello,
You can store equations in Home lists. for example: L1:={'PV','RNT'} You can then eval(L1(1)) What you can not do is store a function of parameters in L1 as there is no way in home to define such a thing... cyrille 

« Next Oldest  Next Newest »

User(s) browsing this thread: