1 / 15

Using MathCAD

Using MathCAD. SCC Spring-08 Electronic Technology Wang Ng x-2638 ngw@scc.losrios.edu. Overview. About MathCAD Using MathCAD as an interactive calculator Using MathCAD with formulas Equation solver Convenient features Advanced features Example : AC calculations Conclusion.

Download Presentation

Using MathCAD

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using MathCAD SCC Spring-08 Electronic Technology Wang Ng x-2638 ngw@scc.losrios.edu

  2. Overview • About MathCAD • Using MathCAD as an interactive calculator • Using MathCAD with formulas • Equation solver • Convenient features • Advanced features • Example : AC calculations • Conclusion

  3. General features • MathCAD • WYSIWYG • K to 4-year College level. • Simple, easy to use. • Not intended for heavy-duty number crunching. • MatLab • Programming style. • Up to M.S. level • Extensive training required. • Suitable for heavy-duty number crunching.

  4. Calculator Mode • The Calculator Tool Bar • The “=“ key (It is the output command) • Examples: • 1+1=2 1/3=0.333 • sin(1)=0.841 sin(1deg)=0.017 • 1mi=1931m 1mi=6336ft • Interactive: just edit the numbers • sin(45deg)=0.707

  5. Complex Calculations • Use i or j for the imaginary part • (5+3j)+(2-4j)= (5+3j)-(2-4j)= • (5+3j)*(2-4j)= (5+3j)/(2-4j)= • (5+3j)^2= = • Polar/Rectangularconversion: • |5+3j|= • arg(5+3j)= (type deg) • 2e^45j*deg= • “j” can be placed in front by typing: 1j*45deg

  6. Formulas • You need to provide data: use the “:” key as the input command (it will look like :=). • Then you need to enter the formula. • Use the “=“ key to obtain the result. • Example: Enter the followings • E:3V • R:2 • I:E/R • I=

  7. Equation solver Find(x,y,...) Solves a system of equations. Minerr(x,y,...) Approximate solution to a system of equations. root(f(x),x,a,b) Solves one equation in one unknown. lsolve(M,v) Solves a system of linear equations. polyroots(v) Solves for the roots of the polynomial whose coefficients are in v.

  8. Example: Using the “root” command

  9. Convenient features • Use the worksheet as handouts. • Specify the unit of the results. • Change the input data and the results will be updated automatically. Note: Data must be placed above formulas. • Many built-in functions (root, …) • Comments can be entered after the “ key. • You can save the worksheet. • Resource center: Tutorials, quick sheets, …

  10. Advanced features • Symbolic process: The symbolic menu bar • Examples: type x^2”space”-1”space” and then select “Factor” from the symbolic menu bar. • Graphs: see attached Bode Plot example. • Array and range variables: Use the “;” key. See attached example. • Programming: The programming menu bar has the basic programming commands. • Calculus, differential equations, matrices, optimization, statistics, …

  11. Bode Plot Example

  12. Examples: RLC circuit impedance R1 R2 C2 L R3 C1

  13. Conclusion MathCAD is a versatile teaching tool: • Calculation steps (formulas) • Demonstrate specific effects • Graphics • Exam/Homework problems • Partial credit • Course note

More Related