Transcription of Just Enough Mathematica to Make you Dangerous …
{{id}} {{{paragraph}}}
% mathUse ssh to get to the % promptIn[1]:= Exit or hit control-dLeave Mathematica (when you re ready to!)% math < > more Mathematica commands from (non-interactively) with output to [2]:= [2]= as a good old hit ENTER (or shift-ENTER) after each commandIn[3]:= 15!Out[3]= 1307674368000 Large values are no problem; you could even compute 1500 factorial if you wanted toIn[4]:= ?LogLog[z] gives the natural logarithm of z (logarithm to base e). Log[b, z] gives the logarithm to base [5]:= Log[10, ]Out[5]= help with a function? Enter a ? followed by the name of a Mathematica function. Not sure of a function s name? You can use a * to see possible matches, , ?L*Note that Mathematica functions are case sensitive and begin with a capital [6]:= (4000/23)^3 64000000000 Out[6]= ----------- 12167In[7]:= %//NOut[7]= 106 Operations done on whole numbers are always represented exactly when means recall the last result and //N means provide an approximate numerical result In[8]:= Sin[60 Degree] Sqrt[3]Out[8]= ------- 2 Function args must be put in square functions are in radians by default.
Just Enough Mathematica to Make you Dangerous Joe St Sauver, Ph.D. (joe@oregon.uoregon.edu) % math Use ssh to get to the % prompt In[1]:= Exit or hit control-d Leave Mathematica (when you’re ready to!) % math < sample.m > sample.lst % more sample.lst
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
{{id}} {{{paragraph}}}