Demonstration program for using CAS with PPL
|
01-21-2014, 05:03 PM
(This post was last modified: 01-21-2014 05:37 PM by Michael de Estrada.)
Post: #8
|
|||
|
|||
RE: Demonstration program for using CAS with PPL
I also revised my original code to replace the 16 individual matrix coefficients aij_ with four row variables row1 through row4, which reduces the number of CAS variables from 16 to 4 and simplifies the code:
PHP Code: //Eigenvalue solver for root based on guess "G". The guess should be a positive Ironically, this is the way I formulated my original RPL solution: EQ <<COEF 'MAT' {1,1} ROW1 ROW2 ROW3 ROW4 MAT DET ROT ROT DROP2>> where the coefficients A,B,C,D are created by: COEF <<LAM SIN 'SSL' STO LAM COS 'CCL' STO LAM SINH 'SHL' STO LAM COSH 'CHL' STO LAM 3 ^ 'L3' STO>> and I used user flags 1 through 4 to identify the rigid support cases, for example: ROW1 << IF 1 FC? THEN L3 NEG PUTI K1 PUTI L3 PUTI K1 PUTI ELSE 0 PUTI 1 PUTI 0 PUTI 1 PUTI END >> I'm changing the RPL code to use negative values instead of flags to designate rigid supports e.g. 1 FC? becomes K1 0 >= |
|||
« 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: 2 Guest(s)