Mathematica


Objective


Introduction

Mathematica is a powerful package for doing mathematics.
It can runs on Windows, Mac, and Linux. It can be used to:

First 5 minutes with mathematica

Mathematica help is a very useful document.
To see help, type ?+command OR PRESS F1.
Usual usage:

Some convention

RUN shift + return
* or SPACE multiplication
^ power
*^ power of 10
% gives the last result generated
%% gives the result before last
@@ apply an operation on expression
Pi the value of Pi:3.14159...
() parentheses for grouping
[] square brackets for functions
{} curly braces for lists
[[]] double brackets for indexing equivalent to Part[]
N[] evaluate numerically
Sqrt[] calculate square root
Sin[]/Cos[] calculate sine/cosine
Log[]/Exp[] calculate logarithm/power of natural base

Solving Equations

Differential and Integral

Polynomial operations

Graphics

Table and Array

Simple Programming

Remove["Global`*"]

f[x_,y_]:=x^y;


var[x_]:=Module[

{m,n},

n=Length[x];

m=(Plus@@x)/n;

(Plus@@((x-m)^2))/(n-1)

];


f[x0_] := Module[

{x = x0},

While[x > 0, x = Log[x]];

x

]