Easy Question -range values
Easy Question -range values
(OP)
Problem: Analyzing crank torque, load is applied for 1/2 rotation
N:=360
i:=0..N
thetai:=i
thetari:= converts thetai to radians
Now I need the following conditional statement for the compression stroke:
ag(thetar):= 1 if pi>thetar>0
0 otherwise
Po= Pp*ag(thetar)
I get an error message that states ag(theta) must be a scalar.
What am I doing wrong? I am new to Mathcad.
jackboot
N:=360
i:=0..N
thetai:=i
thetari:= converts thetai to radians
Now I need the following conditional statement for the compression stroke:
ag(thetar):= 1 if pi>thetar>0
0 otherwise
Po= Pp*ag(thetar)
I get an error message that states ag(theta) must be a scalar.
What am I doing wrong? I am new to Mathcad.
jackboot
RE: Easy Question -range values
Po[i:Pp*ag(thetar[i)
is one approach
TTFN
RE: Easy Question -range values
Wouldn't the conditional statement define the variable?
jackboot
RE: Easy Question -range values
TTFN
RE: Easy Question -range values
thetar[i= theta[i*pi/180
I have a results table -but it is listed as thetar=
jackboot
RE: Easy Question -range values
TTFN
RE: Easy Question -range values
>How can I include a snap shot of my sheet?
You may store your snapshot at http://www.directupload.net an post the link in the forum like this:
"[I M G http:// www .directupload.net/images/050304/EZhgiprl.gif]" (without spaces)
looks like:
If you want to calculate the pressure and the froces in the crankshaft (even of more-cylinder-engines), I uploaded a 7-page-calulation in PDF. I stored it at the GMX-page:
http:/
You've to chose: "GMX Mediacenter starten" and you can download the file. Next week I will publish it at my homepage: http://mitglied.lycos.de/Chr_Meissner in the section "Studium".
Bye,
Christian.
RE: Easy Question -range values
If I have a data table with two columns - when charted I get a shape that looks like two sine curves slightly off phase of one another.
I need to determine the area under the curve (integrate). I don't have an equation of curve but I have data to generate the curve.
Is there a way to determine this with Mathcad?
And I guess if it isn't a .gif if won't display?
jackboot
[I M G http://htt
RE: Easy Question -range values
TTFN
RE: Easy Question -range values
1) posting pictures: The link you used include the "http://"-expression two times; AND you wrote "I M G" with spaces, it should be "IMG" (when I copied the right part of the link, I saw your picture)
2) integrate: the first solution, posted by IRstuff (numerical integration), is the easiest one, but there is another more precise possibility: (e.g. spline) interpolation.
Christian.
RE: Easy Question -range values
jackboot
RE: Easy Question -range values
I am getting a number for my area under the curve that doesn't seem correct. For instance, I am integrating from 0 to 360. If I change the limits to 0 to 120 - I should get 1/3 the value - but I don't. Can anyone explain what I am doing wrong?
RE: Easy Question -range values
Cheers
Greg Locock
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: Easy Question -range values
I can't find a mistake in your MathCAD-sheet jet. You should get the same value for "Anum" and "O". I only noticed, that "O" ist nearly 180 times greater then "Anum" (a half cycle?).
Christian.
RE: Easy Question -range values
TTFN
RE: Easy Question -range values
but I can't open *.xmcd-Files (only *.mcd); I've MathCAD 2001.
Christian.