Sponsored links: Algebra eBooks
 

Related

split

eq:x^2+2*x+1=0;

split("=","x=1");

Calculate

split

aaa:"10+13=10";

split(aaa,"=");

Calculate

split

answer: "x=1";

eq: split(answer,"=");

Calculate

split

split("a,B,ce");

Calculate

split

h:split("a,B,ce",",");

h[1];

Calculate

split

split("a,B,ce");

Calculate

split

eq:x^2+2*x+1=0;

split("=","x=1 or x=2");

Calculate

split

h:split("a,B,ce",",");

h[1];

Calculate

split

eq:x^2+2*x+1=0;

split("=","x=1 or x=2");

Calculate

split

answer: "x=1";

eq: split(answer,"=");

Calculate

split

Run Example
(%i1)split(m,t):=[float(m*cos(t*%pi/180)),float(m*sin(t*%pi/180))];
define: warning: redefining the built-in function split
                                       t %pi                t %pi
(%o1)      split(m, t) := [float(m cos(-----)), float(m sin(-----))]
                                        180                  180
(%i2) a=split(9.4,32);
(%o2)             a = [7.971652103870405, 4.981241083792126]
(%i3) b=split(13.9,59.7);
(%o3)             b = [7.012933971028764, 12.00119815343413]
(%i4) c=split(15.0,143.1);
(%o4)             c = [- 11.99526987730636, 9.00630337988826]
(%i5) [a[0]+b[0]+c[0],a[1],b[1],c[1]];
(%o5)                     [c  + b  + a , a , b , c ]
                            0    0    0   1   1   1
(%i6) 
Run Example
simp:false;
(%o1)                                false
(%i2) deci: 1/2;
                                       1
(%o2)                                  -
                                       2
(%i3) answer: a=-1/2;
                                        - 1
(%o3)                               a = ---
                                         2
(%i4) (split(split(split(string(part(answer,2)),"/")[1],"(")[1],")")[1]/split(split(split(string(part(answer,2)),"/")[2],"(")[1],")")[1]);
                                      -1
(%o4)                                 --
                                      2
(%i5) (split(string(deci),"/")[1]/sconcat("-",split(string(deci),"/")[2]));
                                      1
(%o5)                                 --
                                      -2
(%i6) is((split(split(split(string(part(answer,2)),"/")[1],"(")[1],")")[1]/split(split(split(string(part(answer,2)),"/")[2],"(")[1],")")[1])=(split(string(deci),"/")[1]/sconcat("-",split(string(deci),"/")[2])));
(%o6)                                false
(%i7) is((split(split(split(string(part(answer,2)),"/")[1],"(")[1],")")[1]/split(split(split(string(part(answer,2)),"/")[2],"(")[1],")")[1])=(sconcat("-",split(string(deci),"/")[1])/split(string(deci),"/")[2]));
(%o7)                                true
(%i8) 
Run Example
eq: x^2=1;
                                     2
(%o1)                               x  = 1
(%i2) length(eq);
(%o2)                                  2
(%i3) answer: solve(eq);
(%o3)                          [x = - 1, x = 1]
(%i4) answer[1];
(%o4)                               x = - 1
(%i5) a1: split(string(answer[1]),"=");
(%o5)                              [x ,  -1]
(%i6) 

Related Help

Help for Split