function name | note | example |
General | ||
Sqr | compute square root of a number/complex can also compute Sqr on all items of a list |
example 12 Sqr gives 1.4142135.. example 2 (with complex) (-1;0) Sqr gives { (0;1) (0;-1) } there are the two roots of -1 !! example 3 (a list) {1 2 3} Sqr gives {1 1.41.. 1.73..} |
x^y | x power y can be used as xroot usefull to get all roots of complex |
example 12 3 x^y compute 2^3 and gives : 8 example 2 2 3 1/x x^y compute 2^(1/3) and gives 1.259..
example 3 (complex) (1;1) 3 x^y gives (-2;2) example 4 (complex) (1;1) 3 1/x x^y gives {(1.08;0.29)(-0.79;0.79)(-0.29;-1.08)} there are the 3 roots of (1;1) complex number, and are given in a list. (1;1)^1/3 |
e | exp |
exemple 12 e gives 7.389.. exemple 2 complex (2;1) e gives (3.99;6.21) |
Trigonometric | SIN | compute a sine |
note that angles are given is radians. exemple 1 PI 3 / SIN gives 0.866.. now, just click on button (upper-right) and now 0.866 is displayed as sqr(3)/2 yes : sin(pi/3) = sqr(3)/2 exemple 2 complex (2;1) SIN gives (1.403;-0.489) |
Complex | ||
C->R@ | explode a complex in rho theta | exemple(1;1) C->R@ gives 1.414213 0.78539 ok, now go into rational mode display (click on ) you will see the results displayed as : Sqr(2) pi/4 sqr(2) is the module and pi/4 is the angle. when you are in rational mode display, just the display is affected, value are stored with all digits. |
/ | complex division | exemple(1;1) (0;-1) / gives (-1;1) means that (1+i)/-i = -1+i |
<>(x;y) <>(r;@) | change complex display mode to switch polar/rect. mode |
exemple go into polar(-1;1) <>(x;y) gives (1.4142 @:2.3561) if you are in rational mode display you will get (sqr(2) @:3*pi/4) exemple go into rect. (1.4142 @:2.3561) <>(r;@) gives (-1;1) |
Matrix | ||
DET | Compute a DET on a real/complex matrix |
exemple 1[[1 2 3][-1 1 1][2 3 3]] DET gives -5 exemple 2 complex [[1 2][(-1;1) 1]] DET gives (3;-2) |
/ | vector / matrix system solving |
exemple How to solve this system ? { 3x + (1-i)y = 1 { (2+i)x + iy = 1+iThat simple, just type that : [1 (1;1)] [[3 (1;-1)][(2;1) (0;1)]] /
and you will get the x and y :[[(0.4;0.2)][(0.2;-0.4)]] that mean that x = 0.4 + i*0.2 and y = 0.2 - i*0.4 |
String/File | ||
how to encode a file in base64 ? |
You can easily (and safely) decode an email attachment by selecting in email source the base64 attachement code, just drag-and-drop it into RPNEnh and use B64->. |
|
Arithmetics | ||
PRIMES | list of prime numbers | example a list of the 10 first prime numbers : 10 PRIMES gives { 2 3 5 7 11 13 17 19 23 29} |
Factors | split a number with prime numbers | example 63 Factors gives { 3 3 7 } because 63 = 3*3*7 |
Category | functions | TODO (not yet handled) | status |
General | + - * / NEG ^2 x^y PI 1/x Sqr e 10^x MOD ABS ln log ax˛+bx+c | complete! | |
Trigo | SIN COS TAN ASIN ACOS ATAN D->R R->D | complete! | |
Complex | C->XY C->R@ XY->C <>(x;y) conj | complete! | |
Bases | >DMS >DEC >BIN >HEX | complete! | |
Matrix | DET []-> ->[] tr COMAT []->{} {}->[] PCAR ID RndMX DelRow | dim rank | 89% |
Lists | list-> ->list add get sum reverse sort size head min max | complete! | |
Strings | str-> ->str add len chr asc get md5 ->B64 B64-> head repl fill disp | CRC16 | 98% |
Pourcent | y%x d% x-y% x+y% x%+y% S+x%n | complete | |
Stack | SWAP DUP DUP2 CLEAR OVER ROT AROT PICK DEPTH ROLLD STKUP STKDWN | complete! | |
Stat | sum mean Stdev | complete | |
Arithm | Factors FACT PRIMES | PGCD/LCD PPCM/LCM nPr Cnp | not urgent |
File | FileRead FileWrite md5f FileReadCVS | complete! | |
Vectors | PrdScal PrdVect PrdVect VectAngle | complete! | |
Polynomials | poly->list list->poly Roots PolyDraw Roots->Poly | complete! | |
Script | Serialize unSerialise SetMenu SendKeys Time FOR...NEXT list->script VAR-Menu | run | not urgent |