Presentation is loading. Please wait.

Presentation is loading. Please wait.

PH15720 Laboratory Techniques - An Introduction to MATHCAD.

Similar presentations


Presentation on theme: "PH15720 Laboratory Techniques - An Introduction to MATHCAD."— Presentation transcript:

1

2 PH15720 Laboratory Techniques - An Introduction to MATHCAD

3 Introduction Review of Last Week Built-In Functions Trigonometry Define your own functions

4 Review of Last Week Variables Names for things

5 Names #1 Problems if you use the name of built-in unit or function E.g. : m := 1kg Defines metre as 1kg => broken universe

6 How to tell if already used Type Press = IF defined: MathCAD gives value Else: MathCAD puts up :=

7 Names #2 MathCAD is Case-Sensitive  Fhook is different from FHook Also Font-Sensitive  myName  myName  aVariable  aVariable

8 Translating Equations Equations in physics given in general form Need to translate for specific problem

9 Translating Equations #2 Textbook MathCAD

10 Translating Equations #3 Textbook MathCAD

11 Functions in MathCAD #1 Approx 250 functions Use f(x) on toolbar Trig: sin(x), cos(x), tan(x), acos(x) etc, etc Log & Exponential: ln(x), log(x), exp(x) Random Numbers: rnd(x)

12 Functions in MathCAD #2 Trigonometric Functions  sin(x), cos(x), tan(x)  asin(x), acos(x), atan(x)  x in radians  use ‘deg’ unit to convert from degrees

13 Functions in MathCAD -Define your own #1 Like defining variable, but uses parameter list (p1,p2…):=

14 Functions in MathCAD -Define your own #2 Examples: Define the function …and use it Define the function …and use it …and use it again

15 Why use functions ? Can simplify complex formulae Save cut & paste Better for graphing Makes it easier to separate out parameters & constants

16 Function Parameters Parameters are local Parameters do not affect rest of worksheet Parameter names only work here Not a parameter => Must be defined before

17 Simple X-Y plots ‘Quickplot’ Plot functions with 1 parameter Use with built-in & user defined Insert|Graph|X-Y plot

18 Simple X-Y Plot #1

19 Simple X-Y Plot #2

20 Plot Formatting Double click in graph Format|Graph|X-Y Plot… Dialog box  Gridlines, Numbered Axes, Log Scales  Traces: Colour, Points, Lines &c  Axis titles, legend  Defaults

21 Doing More with Plots #1 Add more curves to y-axis  Separate with, Fix scale on x- & y-axis Add markers on x- & y-axis - from dialog box

22 Scaling plot axes

23 Doing More with Plots #2


Download ppt "PH15720 Laboratory Techniques - An Introduction to MATHCAD."

Similar presentations


Ads by Google