Mathematica 1000 . , .
(). Mathematica , :
- ChebyshevT [n, ] - ;
- CyebyshevU [n, x] - ;
- HermiteH[n, ] -;
- JacobiP[n, a, b, ] - ;
- 'GegenbauerC [n, m, ] ;
- LaguerreL[n, ] n- ;
- LaguerreL[n, , ] - ;
- LegendreP [n, ] n- ;
- LegendreP [n, m, x] ;
- LegendreQ [n, z] n- ;
- LegendreQ [n, m, z] .
:
- Coshlntegralfx] ;
- Coslntegral [] 1();
- Erf [z] ( );
- Erf[z0, zl] erf (zl)-erf (z0);
- Erf [z] 1-erf (z);
- Erfi [z] erf (iz) /i;
- ExplntegralE [n, z] (,z);
- ExplntegralEi[z] Ei(z);
- Loglntegral [z] li(z);
- Sinhlntegral [x] ;
- Sinlntegral [] 81().
- , . . :
_[_]:=䳿.
. Function: Function[{x,y,},expr]. , , .
, . Slot, # #1 #2, #, #1 #2 &. Outer[D[#1,#2]&,f,x].
.
Nest, Fold ( n , ).
Nest[cube,a,3] a^27.
newtoniter[f_,x0_,n_]:=Nest[(#-f[#]/f'[#])&,N[x0],n] x0 N[x0].
|
|
Mathematica: Module, , , .
Mathematica .
Module[]
:
3. Return[]
In[1] SQSum[n_]:=Module[{s,i},s=0;For[i=0;++i<=n,s+=i^2];Return[s]] In[2] SQSum[5] Out[2] 55 |
x=a x a. . x->a ReplaceAll, /. a[x^2]=E^x a[x^2] E^x
{a,b,c,} proc
Module[{a,b,c,},proc]
Block[{a,b,},proc]
,
Module[{a=a0,b=b0,c=c0,},proc]
Block[{a=a0,b=b0,},proc]
ҳ , ; , ;
Module Block . Module , Block :
m=i;
Block[{i=a},m+i]
2a
m=i;
Module[{i=a},m+i]
a+i
: Do, for, while.
Do[expr,{imax}] imax expr
Do[expr,{i,imin,imax}] expr i imin imax 1
Do[expr,{i,imin,imax,di}] expr i imin imax di
For[start,test,iner,body]- start, test, , body i iner test false.
While[test,body] body test
Abort[]
Break[]
Contineu[] - .
Interrupt[]
Return[] NUll
Return[exrp] expr
If[condition,exprt,exprf] exprt, condition true, exprf.
Which[test1, value1, test2, value2,] , value.
Swith[expr,form1,value1, form2,value2,] expr form, value2 .
Input[]- print[expr]-