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

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)

1 ACCEPTED SOLUTION

Accepted Solutions
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

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

Luc

6-Contributor
(To:LucMeekes)

Hello LucMeekes,

Thanks. OK. sending it soon.

Regards

6-Contributor
(To:LucMeekes)

Hello LucMeekes,

Thanks again,

Here they are:

21-Topaz II
(To:Anousheh)

M15,

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.

23-Emerald I
(To:Anousheh)

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.

6-Contributor
(To:Fred_Kohlhepp)

Hello FredKohlhepp,

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

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

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

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

6-Contributor
(To:Anousheh)

Thank you guys.

Be safe

Announcements