Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.9K Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Plot the function pn[n]?

Posted 9 years ago

Hello, I have no idea why I can't plot the function pn2[n] (see attachment)... Mathematica doesn't yield an error message at all and the function seems to behave well (i tried evaluating it with no problems at all, the result is a 3 element vector) , also I've already done plots where the function is a vector and has one independent variable. Thanks

Attachments:
POSTED BY: tomas giud
4 Replies
ParametricPlot3D[
 Re[pn2[n] /. {\[Alpha] -> .5, \[Beta] -> .5}], {n, 0, 10}]

enter image description here

ParametricPlot3D[
 Im[pn2[n] /. {\[Alpha] -> .5, \[Beta] -> .5}], {n, 0, 10}]

enter image description here

I used Table[] to see the values of your function:

In[64]:= 
Table[pn2[n] /. {\[Alpha] -> 1/2, \[Beta] -> 1/2 }, {n, 0, 10}]

Out[64]= {{0.5, 0.5, 6.93889*10^-18}, {0.4375, 0.5, 0.0625}, {0.40625,
   0.53125, 0.0625}, {0.402344, 0.53125, 0.0664063}, {0.400391, 
  0.533203, 0.0664063}, {0.400146, 0.533203, 0.0666504}, {0.400024, 
  0.533325, 0.0666504}, {0.400009, 0.533325, 0.0666656}, {0.400002, 
  0.533333, 0.0666656}, {0.400001, 0.533333, 0.0666666}, {0.4, 
  0.533333, 0.0666666}}

There are no complex values, but you must use ParametricPlot3D[]. Unfortunately, it doesn't plot the graph. At least, ListPlot3D[] gives some appropriate image.

Posted 9 years ago

Your function is complex valued. Try this

Plot[ReIm[pn2[n] /. {\[Alpha] -> .5, \[Beta] -> .5}], {n, 0, 10}]

POSTED BY: Louis Godwin
Posted 9 years ago

Ok you see I did a list of pn2 values for naturals from 0 to 10 and get real vectors. It seems the only complex values occur when n is not an integer. I'm now trying to use discrete plot....thank you very much, I didn't notice plot is continuous, which is pretty obvious. Thanks!

POSTED BY: tomas giud
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard