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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

PLOTTING A GRAPH CONTAINING "Gamma" FUNCTION in PRIME

Anousheh
6-Contributor

PLOTTING A GRAPH CONTAINING "Gamma" FUNCTION in PRIME

Hello,

I can plot graph involving "Gamma" function in MathCad 15, but in Prime, either nothing happens or it gives error message saying that "This must be a real number".

Help will be very much appreciated.

Thanks,

Anousheh

PS: Plot of N1(alpha) against alpha    (I have defined alpha as a variable)

 

Anousheh_0-1586793063234.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
LucMeekes
23-Emerald III
(To:Anousheh)

See Fred's example, where he defined a range for alpha.

For an x going from 0.4 to 0.5 in steps of 0.01, you'd define:

x:=0.4, 0.41 .. 0.5

(The first value, 0.4, is the starting value. After the comma follows the second value, and after the .. is the last value of your range.  So the 'step'  is equal to the second minus the first value. If you don't provide a 'step' it defaults to 1. That's not handy in your case.)

 

Success!
Luc

View solution in original post

11 REPLIES 11
LucMeekes
23-Emerald III
(To:Anousheh)

Please attach the Prime worksheet that contains your attempt.

Luc

Anousheh
6-Contributor
(To:LucMeekes)

Hello LucMeekes,

Thanks. OK. sending it soon.

Regards

Anousheh
6-Contributor
(To:LucMeekes)

Hello LucMeekes,

Thanks again,

Here they are:

MathCad 15 and MathCad Prime

-MFra-
21-Topaz II
(To:Anousheh)

M15,

answer to Anousheh.jpg

Anousheh
6-Contributor
(To:-MFra-)

Hello -MFra-,

Thanks a lot.

I have no problem with MathCad 15.

Prime is the problem. Please see the attached Prime file.

Really appreciate this.

FredKohlhepp_0-1586807724604.png

I have only Express, so the  G function is not available to me, but this is how to plot inside mathcad.  N2 function plots just fine.

Hello FredKohlhepp,

Thanks a lot for your reply.

N2, as you have mentioned in your message works fine.

Problem is with Gamma function. For some reason Prime doesn't like it!! 

I just tried with the simple plot tab in Prime and I could manage to plot N1 too. But, using "Chart Component" won't work.

Thanks again for your time and help.

Be safe,

Anousheh

LucMeekes
23-Emerald III
(To:Anousheh)

That's what I wanted to say: Don't use the chart component, which is a badly incorporated third-party add-on to Prime. Just use the built-in plotting facility.

 

Success!
Luc

Anousheh
6-Contributor
(To:LucMeekes)

Hi Luc,

Thank you so much for your input.

Now, how do I change the x-axis values to start, let's say with 0.5 and ends with 0.4.

This is the range I need to plot N1 and N2.

Thanks,

Anousheh

LucMeekes
23-Emerald III
(To:Anousheh)

See Fred's example, where he defined a range for alpha.

For an x going from 0.4 to 0.5 in steps of 0.01, you'd define:

x:=0.4, 0.41 .. 0.5

(The first value, 0.4, is the starting value. After the comma follows the second value, and after the .. is the last value of your range.  So the 'step'  is equal to the second minus the first value. If you don't provide a 'step' it defaults to 1. That's not handy in your case.)

 

Success!
Luc

Anousheh
6-Contributor
(To:Anousheh)

Thank you guys.

Be safe

Top Tags