中正大學化數課程範例

Basic Operation
Arithemetic

1+1

5-3

11*11

64/8

1.55^2

6.02*^23

-3*5+2*10

(2+3)/(9+6)

1/3+1/2

1/3+1/2 //N

Functions

Log10[2.0]

Log10[3.0]

Log[10.0]

Sqrt[10]

Sqrt[10]//N

3!

10!

3628800

Pi

Pi//N

N[Pi,10]

Sin[Pi/2]

Sin[30 Degree]

Cos[Pi]

Exp[1.0]

Exp[-5.0/0.6]

Exp[-10/0.6]//N

Sqrt[3^2 + 4^2]

Binomial[4,2]

Binomial[20,10]

ScientificForm[ N[%],3]

Table[Prime[n],{n,10}]

PrimeQ[131]

PrimeQ[799]

FactorInteger[799]

Divisors[60]

Divisors[1729]

GCD[60,150]

LCM[24,56]

FactorInteger[72]