cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

9-Granite

## Mathcad Prime 9 states that a variable is undefined when it is.

Team,

Mathcad Prime 9 states that a variable is undefined when it is.

6 REPLIES 6
25-Diamond I
(To:gatlas)

You can't numerically evaluate a function definition, so you must delete the equal sign after the definition of function f.

But there are a couple of other errors, too.

You define r as a function of t and so whenever you use r later, you have to type r(t) and not just r. Same applies to function theta(k).

Therefore your function s(theta) must be a function s(k,t) because its definition uses r(t) and theta(k) and whenever you use  s later you have to type s(k,t).

At the end you would have a function f dependent on t, M and and so far undefined value k.

I changed the definitions accordingly but am pretty sure that the result is not what you intended

BTW, you probably know that the imaginary unit is already predefined in Prime. You can type 1i or 1j (without a space or multiplication dot inbetween. For results you have the option to display it either with i or with j (or in polar representation). unfortunately unlike real Mathcad, Prime does not hide the the leading 1 and so the display is rather ugly and unusual which probably is the reason you (re)defined i. You may consider to label it as constant so it looks a bit different from a normal variable.

9-Granite
(To:Werner_E)

Werner,

It's not computing the correct answer. It's supposed to numerically invert a Laplace transform.

I've attached the original paper.

If you have a minute, have a look.

Thanks,

Glen

25-Diamond I
(To:gatlas)

Yes, thought it would not be the result you expected.

I just fixed the syntax, the Mathcad errors concerning your usage of functions, etc., but not the semantics.

Sorry, don't have the time to dive in the pdf you posted.

9-Granite
(To:Werner_E)

Werner,

Thanks anyway. I'll play with it some more. It's not super critical to my research.

Regards,

Glen

23-Emerald III
(To:gatlas)

I couldn't understand the Mathematica syntax in the article you quote. Found another article by the same author and came up with this.

Prime 4 file attached.

Success!
Luc

23-Emerald III
(To:LucMeekes)

Updated to include the Euler and Gaver-Stehlfest algorithms as well.

Success!
Luc

Announcements

Top Tags