![]() ![]() Click anywhere in the worksheet and make the following variable assignment: x := -2. ![]() Defining variables in Mathcad To define a variable in Mathcad use the assignment operator, namely, a colon followed by an equal sign ,:=, which you can get by typing a colon ( ). The right-hand side of this result shows that the root sought is x = 3. Click somewhere else in the worksheet to see the result:įunction root was used to find the solution of the equation x3-x-24 = 0, specifying that the unknown of interest is x, and providing the interval 0 < x < 5 as the preferred interval for the solution. Click on the fourth placeholder and type 5 8. Click on the third placeholder and type 0 7. Click on the second placeholder and type x 6. Click on the first placeholder and type x^3 –x-24 5. Using the f(x) button, select function root under the Solving category. Click in an area of the main Mathcad window 2. As an example, try the following exercise:ġ. Some functions, such as sin and cos, are straightforward mathematical functions, while others are Mathcad functions used to perform specific operations in the worksheet. Using Mathcad function root to find the root of an equation Explore on your own the functions available under the f(x) button. Mathcad reference tables and User’s Guide, 60.ODE solution: gradually-varied flow (GVF) solution in a trapezoidal channel, 58.Solving a second-order ODE with rkfixed, 56.Solution of first-order ordinary differential equations, 54.Surface interpolation with splines, 52.Data fitting using vectors (linfit), 48.Operations with elements of matrices and vectors, 48.Eigenvalues and eigenvectors of a square matrix, 47.Matrices used in the solution of systems of linear equations, 46.Vector field plot for flow velocities from a complex function, 40.Visualization of potential flows using complex functions, 39.Graphics of matrices (example using complex functions), 37.Symbolic solutions to systems of equations, 34. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |