Post Reply 
How do I use CAS variables in a Program?
05-30-2017, 07:39 PM
Post: #3
RE: How do I use CAS variables in a Program?
Unfortunately, Han, I still cannot make this work for me.

Here is a simple program (double the value and add one) I tried several variations of, and I predefined the CAS variable aa in the CAS screen.

Code:

#cas
TwoUadd1():=
BEGIN
  CAS.aa:=CAS.aa*2+1;
  PRINT(CAS.aa)
  return CAS.aa;
END;
#end

When I run the program, it does not use the long precision, but instead drops it into scientific notation, and as you can see in the attached image, the new value of aa in the CAS window is also now in that notation.

Perhaps it can't be done????

I look forward to any hints you can provide.


Attached File(s) Thumbnail(s)
   
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How do I use CAS variables in a Program? - John@Mazes.com - 05-30-2017 07:39 PM



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