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

Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X

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

bobg100x
9-Granite

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?

 

 

 

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(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:

Werner_E_0-1645190714042.png

Prime 6 worksheet attached

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(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:

Werner_E_0-1645190714042.png

Prime 6 worksheet attached

 

Thank you!

Announcements

Top Tags