Four Steps Needed to Derive a Differential Equation

Four Steps Needed to Derive a Differential Equation

<p> Department of Mathematics and Computer Science South Dakota School of Mines and Technology</p><p>Math 373 4_Excel_Macros</p><p>1. Write Macros of your choice that uses an IF statement.</p><p>Always submit your Excel worksheet AND your macro code pasted into a text box on the worksheet and describe the purpose of the macro using comment statements within each macro. Use a single quote mark to enter a comment.</p><p>Subroutine Example Sub QuadraticRoots() ' This function computes the roots of a quadratic equation given the coefficients ' a, b, c from the equation ax^2 + bx + c =0 ' Get values from sheet. Each is available as a created name of the forms _a, _b, and _c. ' The roots are created names _root1 and _root2. a = [_a] b = [_b] c = [_c] ' Find Conjugate Conj = b ^ 2 - 4 * a * c If Conj < 0 Then [_root1] = "Imaginary Roots" [_root2] = "Imaginary Roots" Else [_root1] = (-b + Conj ^ 0.5) / 2 / a [_root2] = (-b - Conj ^ 0.5) / 2 / a 'Since these expressions are evaluated left to right, 1/2/a is the same as 1/(2*a) End If End Sub</p><p> Stanley M. Howard 2000</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    1 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us