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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

8-Gravel

Follow-up to my 1/18/22 post, "Generating a hemispherical dome surface plot using a cosine function"

On Jan. 21, 2022, Werner_E provided the solution for creating color-coded mesh surface plots using Mathcad Prime 6.0 for two functions [f1(x) and f2(x)] I had defined [Solved: Re: Generating a hemispherical dome surface plot u... - PTC Community]. Assuming that these instructions could be utilized to create similar plots with any other monotonic function, I defined and inserted two new functions [f3(x) and f4(x)- -see below] in the equation S = CreateSlices(f1, 0, a, 5):

f3 e–cx/a        f4 = 1 – x/a, both over 0 ≤ x ≤ a, with a = 300, c = 4.61

Evidently my simplistic assumption was incorrect- -the Insert 3D Plot command failed to generate the anticipated five-color slice hemispherical domes whose height ranges between 0 and 1.0. Where did I go wrong?

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:bobg100x)

The problem was the function "finv" which is a numeric implementation for the inverse function of any arbitrary function. It could not find a solution for the end points. As we know the x-values for those end points it was possible to rewrite the function "CreateSlices" not to use "finv" for them.
So far this seems to work OK for all the demo functions in the worksheet and also for the two you had problems with:

Prime 6 worksheet attached

2 REPLIES 2
24-Ruby V
(To:bobg100x)

The problem was the function "finv" which is a numeric implementation for the inverse function of any arbitrary function. It could not find a solution for the end points. As we know the x-values for those end points it was possible to rewrite the function "CreateSlices" not to use "finv" for them.
So far this seems to work OK for all the demo functions in the worksheet and also for the two you had problems with:

Prime 6 worksheet attached

8-Gravel
(To:Werner_E)

Thank you!

Announcements
Top Tags