Computing environment MathCAD is a universal tool for those people who have tightly connected their lives with computing. "Matkad" is able to perform complex mathematical calculations and instantly give an answer on the screen. Students, or those who first encountered this program, have many questions that they cannot answer on their own. And the first thing that complicates further training is the question of how to plot a function graph in Matkad. In fact, it is not as difficult as it might seem. We will also try to figure out how to plot a function in Mathcad (MathCAD 15), how to display several functions and with what elements to display a graph on the screen.
Quick Chart in Mathcad
Let's take one function and we will carry out all the operations listed below with it. Suppose we have the following terms of reference: plot the function f (x) = (e ^ x / (2x-1) ^ 2) -10 on the interval [-10; 10], study the behavior of the function.
So, before you plot a function graph in Matkada, you need to rewrite our function in a mathematical environment. After that, we just figure out a possible schedule without scaling and everything else.
.
- To do this, press Shift + 2. A window will appear in which a graph of our function will be built, but for this you must enter all the necessary data.
- Opposite the vertical line there are 3 black squares: the upper and lower determine the construction interval, and the middle sets the function by which the graph will be built. We set the function f (x) in the middle square, and leave the top and bottom unchanged (they are automatically adjusted).
- Under the horizontal line there are also three black squares: the extreme ones are responsible for the interval of the argument, and the middle one is for the variable. We introduce the integral value from -10 to 10 in the extreme fields, and enter the value (x) in the middle one.
Here's how to plot a function in Matcade.
Building additional charts
To understand how to build several function graphs in Matkada, we add a small addition to our technical task: construct a graph of the derivative of a given function. The only thing needed is to add the derivative with respect to the variable (x) in the graph field.
- We open our schedule and where the function was written, it is necessary to put a comma. Next, a new line will be displayed below, where we need to enter the derivative: df (x) / dx.
- A graph of the derivative is displayed, but for clarity, it is worth changing the color of the line and its shape. To do this, double-click on the schedule - a window opens with the settings.
- We need the "Tracing" section, where the curves will be listed in the table.
- Select the second curve and change the shape of the line to a dotted line.
Chart based on a set of values
Before plotting a function in "Matkad 15" by points, it is necessary to create a range of values. Immediately, we note that a graph constructed by points is sometimes not accurate, since there may be a point that does not fall into the range of values, but there is a gap in the original graph in it. This example will specifically show this case.
We need to set a range of values. To do this, assign values to the variable (x: = - 10, -8.5 .. 10). When the user sets the range, he should know that the colon is put through the symbol (;). Now for visual perception, we display all the values (x) and f (x) in the program. To do this, enter (x =) and, accordingly, (f (x) =). Now re-build the function graph, only this time by points.
- Using the hot keys Shift + 2, we again call up the window with plotting.
- We define the function f (x), the interval along the ordinate axis from -20 to 100, the interval along the abscissa axis from -10 to 10, we denote the variable (x).
- The graph is automatically plotted, which differs in some parts from the graph of a function constructed analytically.
We see that the point-based graph does not display the point that makes the gap on the original graph. That is, we can conclude that the construction by points may not take into account the value of the functions that create the gap.
Graph display setting
In this article, we have already touched on the schedule settings. The settings window is called up by double-clicking the left mouse button on the graph.
There are five sections in the graph formatting window. "X, Y axes" contains information about the coordinate axes, as well as the display of auxiliary elements. The second section "Tracing" is associated with the curved lines of the graph, here you can adjust their thickness, color and more. "Number format" is responsible for displaying and calculating units. In the fourth section, you can add signatures. The fifth section - "By default" displays all the settings in a standard form.