New to Mathcad
New to Mathcad
(OP)
Hi,
Can anyone take a look at my file to see if I have understood the what is being asked of me properly as I have only just started Mathcad & need all the help I can get!
Thank you
Can anyone take a look at my file to see if I have understood the what is being asked of me properly as I have only just started Mathcad & need all the help I can get!
Thank you





RE: New to Mathcad
1. rather than copy the expression from V(x), just differentiate V(x) directly; this is a general principle and saves an awful lot of copy/paste or transcription problems.
2. use the keyword 'simplify' - this often gives a different, but equivalent, result to a plain symbolic evaluation
3. assign the symbolic result to a variable or function
4. do a quick numerical check if you're not sure about the result
RE: New to Mathcad
What difference does the word 'simplify' do compared to Ctrl.
RE: New to Mathcad
If so would I now write:
dVs2(x):=0
Given
then put the dVs2(x) equal to something?
RE: New to Mathcad
2. You could use a solve block, but better (in this instance) is to use the symbolic solve keyword
try
roots:=dVs2(x) solve,x->
this will show you the roots (in symbolic form); type 'roots=' to see the numeric values.
then
type 'dvs2(roots)='
to check they really are the zero points.
You could plot them on the graph by double-clicking on the plot, setting x-axis markers, then typing roots[0 and roots[1 into the placeholders.
To see the negative root, you'll need to add Im(dVs2(x)) to the plot
RE: New to Mathcad
Why isn't a solve block suitable here?
So do I understand you that roots returns a value of x when the f(x)=0
Im is also a new operator to me.
RE: New to Mathcad
A solve block is suitable, but the symbolic solve is simpler and more direct.
>> So do I understand you that roots returns a value of x when the f(x)=0
Yes. I could have been more explicit and said f(x)=0 solve x, but Mathcad assumes that's what meant.
== Im is also a new operator to me
Re is the counterpart for real, and you use |z| to get the magitude of complex number z and arg(z) to get the argument.
RE: New to Mathcad
Do I plug in values for x within the range given?
RE: New to Mathcad
You could also find the zeros of the volume using solve (there will be three of them) and then plot V(x) between the appropriate roots, and put roots[0 as a marker to validate that it really is the max volume.
RE: New to Mathcad
What is the answer to the max volume as there are 3 values?
-10
10.657 (zero y value)(root)
-0.657 (zero y value)(root)
When you write "V(roots[0)=" what is the [ for?
Also how did you add another placeholder to the graph?
RE: New to Mathcad
== -10,10.657 (zero y value)(root),-0.657 (zero y value)(root)
Sorry, those values are the zeros of V(x); I used them to show where the effective min and max x values were. If you plot V(x) between -11 and +11, you should see that the 2nd and 3rd roots correspond to the limits of the x values for a real volume.
The maximum volume is given at the root of the d/dx V(x) which gives a real result, ie ~6.733.
When you write "V(roots[0)=" what is the [ for?
That's the character you type to get a vector (strictly 'array') index placeholder. Most languages tend to use parentheses or brackets for vector indexing (eg, v(1) or v[1]), but Mathcad uses a subscripted index (unfortunately, I don't know how to show subscripts in this forum); typing v[1 gives access to the element of v with index 1 (Mathcad array indexing is zero-based by default).
Just to confuse beginners, there is another type subscript, the 'literal subscript' - type v.1 to get an example. In an indexed subscript, the subscript can be a number, variable, or other expression that evaluates to an integer. A literal subscript, however, is part of the name; it allows names such as epsilon0 to be expressed as they would appear in a text book.
Look them up in Help.
== Also how did you add another placeholder to the graph?
On the x and y axes, just type ',' then the new expression -this will plot the new expression (provided it's correct, of course).
The value root[0 is implemented as a 'marker'. Each 2D plot allows the user to put two markers on each axis, and is intended to allow the user to display a straight line running up (x axis) the plot or across (y axis) it. You set these by double-clicking on the plot to bring up the control dialog box and then allowing markers - again, see Help.
RE: New to Mathcad
I've attached a graph of the function V(x). The maximum value on it shows 14.993. Can a 2nd derivative test prove this do you think?
RE: New to Mathcad
Yes. See attached - note the use of the vectorize operator and Math Styles.
RE: New to Mathcad
RE: New to Mathcad
jghrist that is an interesting use of the first derivative root for me.