Sponsored links: Algebra eBooks
 

Related

at-block-denom-float-mod-numer-rat-ratprint

rat(0.1234);

rat(0.12345);

rat(0.12345);

Calculate

at-diff-divide-gcd-sqrt

P:4*X^4+2^(7/2)*sqrt(...

P1:diff(P,X);

at(P,[X=-1]);

Calculate

at-ev-solve

dat:[F=10,P=2,M=55,co...

eq1:Xa+Xb*F*cosa;

eq2:YA+Yb-F*sina+P;

Calculate

at-cos-diff-linsolve-pi-quad_qags-sin-subst

f0: s^2*(a0 + a1*s + ...

c0: at(f0,s=1)=%pi;

c1: at(diff(f0,s),s=1...

Calculate

at-plot2d
plot2d(f(x), [x, -5, 5], [y, -5, 5], [gnuplot_preamble, "set xtics (

f(x) := (-2)*((x-4)^2...

at(f(x), [x=4]);

plot2d(f(x), [x, -5, ...

Calculate

at-solve

z: V1*p1/T1 = V2*p2/T2;

isop: z, p1=1, p2=1;

isoV: z, V1=1, V2=1;

Calculate

at-float-solve

z: V1*p1/T1 = V2*p2/T2;

isop: z, p1=1, p2=1;

isoV: z, V1=1, V2=1;

Calculate

at-rat

rat( ((1 + rate) ** n...

Calculate

at-eigenvalues-invert-jacobian

A: jacobian ([a*If*Sh...

B: jacobian ([gh*Ih, ...

C: invert (B);

Calculate

at-cos-sin

at (3*sin (x) + 4*cos...

Calculate

at

Run Example
(%i1)rat(0.1234);

rat: replaced 0.1234 by 617/5000 = 0.1234
                                     617
(%o1)/R/                             ----
                                     5000
(%i2) rat(0.12345);

rat: replaced 0.12345 by 2469/20000 = 0.12345
                                     2469
(%o2)/R/                             -----
                                     20000
(%i3) rat(0.12345);

rat: replaced 0.12345 by 2469/20000 = 0.12345
                                     2469
(%o3)/R/                             -----
                                     20000
(%i4) mod(12345, 1000)/100000, numer;
(%o4)                               0.00345
(%i5) lastdigits(fnum, lastn):=block([m:10*fnum, ans, n:lastn], /* it doesn't help when lastn is bigger than the total digits in fnum it returns the whole digits in fnum anyway without erroring! and fnum=%pi stuff works only upto 8 digits cause num(rat(fnum)) has somuch only! */ratprint:false, k:rat(fnum), ans:mod(m, (10^-n))/(mod(m, 10)*denom(k)), return(float(ans)));
(%o5) lastdigits(fnum, lastn) := block([m : 10 fnum, ans, n : lastn], 
                                                   - n
                                          mod(m, 10   )
ratprint : false, k : rat(fnum), ans : -------------------, return(float(ans)))
                                       mod(m, 10) denom(k)
(%i6) lastdigits(0.12345, 3);
(%o6)                        2.0251113811259619E-8
(%i7) 
Run Example
f:5*4.57+3;
(%o1)                                25.85
(%i2) at(f,x=4,57);
(%o2)                                25.85
(%i3) df:diff(f,x);
(%o3)                                  0
(%i4) at(df,x=4.57);
(%o4)                                  0
(%i5) plot2d(df,[x,0,1]);
plotplot2d(df,[x,0,1]);
Run Example
rat(+ 0.76895553987651);

rat: replaced 0.76895553987651 by 4513/5869 = 0.76895552905095
                                     4513
(%o1)/R/                             ----
                                     5869
(%i2) 

Related Help

Help for At