Demonstration program for using CAS with PPL
|
12-18-2013, 05:46 PM
(This post was last modified: 01-10-2014 01:19 AM by Michael de Estrada.)
Post: #1
|
|||
|
|||
Demonstration program for using CAS with PPL
The program is probably of little interest to most people on this forum, and is meant to demonstrate usage of CAS functions and operations in PPL programs.
1. The best way I've found to incorporate CAS functions, commands and operations inside a PPL program is to first develop and debug them inside the CAS view and then enclose them in a CAS shell, i.e. <CAS Expression> becomes CAS(" <CAS Expression> ") inside a PPL program. 2. Make sure any variables that are used with a CAS function are global, either by using predefined variables such as A, B, C etc. or by defining them as either global User variables or CAS variables. Never use LOCAL variables or dummy parameters. 3. Avoid using CAS functions if a non-CAS alternate is available. For example, instead of using sqrt(), use ()^.5. PHP Code: //Eigenvalue solver for root based on guess "G". The guess should be a positive Revised code to correct misassignment of complex output from nSolve to real global variable X. Replaced X with global complex variable Z0 and then assigned its absolute value (scalar magnitude) to X. Note that the imaginary part of Z0 is approximately zero. Revised code to use AAngle instead of HAngle to set angle mode in program and then restore AAngle setting in current active App. AAngle has priority over HAngle. Revised code to add limiting case solution for rigid supports (k-->infinity). A rigid support is flagged by entering the stiffness value k as a negative number. Previously, the stiffness value k had to be entered as a very large positive value. |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Demonstration program for using CAS with PPL - Michael de Estrada - 12-18-2013 05:46 PM
RE: Demonstration program for using CAS with PPL - Han - 01-18-2014, 01:46 AM
RE: Demonstration program for using CAS with PPL - Michael de Estrada - 01-19-2014, 06:00 PM
RE: Demonstration program for using CAS with PPL - Han - 01-21-2014, 05:05 AM
RE: Demonstration program for using CAS with PPL - Michael de Estrada - 01-21-2014, 02:48 PM
RE: Demonstration program for using CAS with PPL - Han - 01-21-2014, 04:38 PM
RE: Demonstration program for using CAS with PPL - Michael de Estrada - 01-21-2014, 04:42 PM
RE: Demonstration program for using CAS with PPL - Han - 01-21-2014, 09:04 PM
RE: Demonstration program for using CAS with PPL - Michael de Estrada - 01-21-2014, 05:03 PM
|
User(s) browsing this thread: 3 Guest(s)