An Introduction to MathCAD
description
Transcript of An Introduction to MathCAD
An Introduction to MathCAD
More Symbolic Maths
And
First Steps in Calculus
2MathCAD #5 dpl 2001
Live Symbolic Calculation
Use Symbol ToolbarSymbolic Evaluation Operator
Evaluation with Keywords
3MathCAD #5 dpl 2001
Live Symbolic Calculation
<ctrl-.> Evaluate & Simplify by default
1 2 3 6
1 6 8 x 15 x
x x4 4 x( )
x 5 x 4
xcos x( )
d
dsin x( )
4MathCAD #5 dpl 2001
Evaluation with Keywords •
Type <ctrl-shift>.
5MathCAD #5 dpl 2001
Substitute
Uses boolean equals =<ctrl>=
x 17 substitute x y y 17
a b( ) c d( ) substitute a x b y( ) x y( ) c d( )
6MathCAD #5 dpl 2001
Solve
– Will solve expressions or equations for variables
– If = omitted assumes =0
x 7 12 solve x 5
sin x( ) cos x( ) 0 solve x1
4
x 7 solve x 7
7MathCAD #5 dpl 2001
The Calculus Toolbar
Accessed from View|Toolbars|Calculus
Or by clicking on integral sign on palette
Contains shortcuts for common calculus operations
8MathCAD #5 dpl 2001
The Calculus Toolbar
9MathCAD #5 dpl 2001
Summations
Summations and Product available
2 forms:– Existing range variable– Create new range variable
1
5
i
i
=
15
10MathCAD #5 dpl 2001
ex defined as:
Define MyE function to give an approximation of order n
Calculating e
MyE x n( )
0
n
i
xi
i =
1 xx
2
2
x3
3
x3
4 ....
11MathCAD #5 dpl 2001
Calculating e
n 0 8
0 2 4 6 81
1.5
2
2.5
3
MyE 1 n( )
e
n
12MathCAD #5 dpl 2001
Derivatives
Numeric & Symbolic
f x( ) x3 7 x2 3 x 24
f1 x( )xf x( )d
df1 x( ) 3 x2 14 x 3
f2 x( )2x
f x( )d
d
2f2 x( ) 6 x 14
f 0( ) 24
f1 0( ) 3
f2 0( ) 14
13MathCAD #5 dpl 2001
Derivatives #2
x 10 9.9 10
10 5 0 5 10200
100
0
100
200
f x( )
f1 x( )
f2 x( )
x
14MathCAD #5 dpl 2001
Integrals
From Calculus Toolbar Symbolic & Numeric
Evaluation
xcos x( ) d sin x( )
a
bxx2 33 x 23d
1
3b3 33
2b2 23 b 1
3a3 33
2a2 23 a
1
2xx2 33 x 23d 74.833