Sponsored links: Algebra eBooks
 

Related

substring

substring("http://dat...

Calculate

substring

substring("ABC.DAT",1...

Calculate

substring

substring("substring"...

substring(%,4,6);

substring("CCB2MDM2JM...

Calculate

substring

de9f8caa7ea6fe5683092...

Calculate

substring

substring("Attribute:...

substring(%,4,6);

Calculate

substring

substring("CONTROL 00...

substring(%,4,6);

Calculate

substring

substring("5021078662...

substring(%,4,6);

Calculate

substring

substring("substring"...

substring(%,2,6);

Calculate

substring

substring("28/09/1995...

substring(%,1,2);

Calculate

substring

substring("A1234",4);

substring(%,1,4);

Calculate

substring

Run Example
(%i1)substring("substring",4);
(%o1)                               string
(%i2) babc;
(%o2)                                babc
(%i3) 
Run Example
ratprint : false;
(%o1)                                false
(%i2) fpprintprec : 12;
(%o2)                                 12
(%i3) errorn(x,n) := 10^ceiling(log(abs(x) + 1e-306) / log(10) - n);
                                       log(abs(x) + 1.0E-306)
                               ceiling(---------------------- - n)
                                              log(10)
(%o3)        errorn(x, n) := 10
(%i4) roundn(x,n) := errorn(x,n) * round(x * (1 + 1e-15) / errorn(x,n));
                                                 x (1 + 1.0E-15)
(%o4)        roundn(x, n) := errorn(x, n) 'round(---------------)
                                                  errorn(x, n)
(%i5) testnumber(uans,ans,n) := is(roundn(uans,n) = roundn(ans,n));
(%o5)  testnumber(uans, ans, n) := is(roundn(uans, n) = roundn(ans, n))
(%i6) teststring(uans,ans,n) := is(substring(string(uans),1,n+1) = substring(string(ans),1,n+1));
(%o6) teststring(uans, ans, n) := is(substring(string(uans), 1, n + 1) = 
                                              substring(string(ans), 1, n + 1))
(%i7) N_A : 6.0221367e23;
(%o7)                            6.0221367E+23
(%i8) R : 8.3145;
(%o8)                               8.3145
(%i9) k : R / N_A;
(%o9)                         1.380656138211E-23
(%i10) g : 9.81;
(%o10)                               9.81
(%i11) M : 29.0e-3;
(%o11)                               0.029
(%i12) d : 3.6e-10;
(%o12)                              3.6E-10
(%i13) p_0 : 101325;
(%o13)                              101325
(%i14) T_0 : 273.15 + 15;
(%o14)                              288.15
(%i15) c : 1010;
(%o15)                               1010
(%i16) alpha : 6e-3;
(%o16)                               0.006
(%i17) /* pallon massa */ m : 67 * 10;
(%o17)                                670
(%i18) /* pallon tilavuus */ V : 226 * 10;
(%o18)                               2260
(%i19) /* pallon korkeus */ h : \S2 *100;
(%o19)                              100 S2
(%i20) T(h) := T_0 - alpha * h;
(%o20)                       T(h) := T_0 - alpha h
(%i21) p(h) := p_0 * (1 - alpha * h / T_0)^(g * M / R / alpha);
                                                  g M
                                                  ---
                                                   R
                                                 -----
                                         alpha h alpha
(%o21)                  p(h) := p_0 (1 - -------)
                                           T_0
(%i22) rho(h) := p(h) * M / R / T(h);
                                         p(h) M
                                         ------
                                           R
(%o22)                         rho(h) := ------
                                          T(h)
(%i23) T_p(h) := T(h) / (1 - m / rho(h) / V) - 273.15;
                                      T(h)
(%o23)                   T_p(h) := ---------- - 273.15
                                         m
                                       ------
                                       rho(h)
                                   1 - ------
                                         V
(%i24) Q : p_0 * M * V * c / R * log(T_p(h) / T_p(0));
(%o24) 8.066929947682E+8 log(0.009358646848
                                        288.15 - 0.6 S2
                           (---------------------------------------- - 273.15))
                                8.388569187891E-4 (288.15 - 0.6 S2)
                            1 - ------------------------------------
                                                       5.70268807505
                                (1 - 0.002082248829 S2)
(%i25) 
Run Example
substring("substring",4);
(%o1)                               string
(%i2) 

Related Help

Help for Substring