Mathematica Resolving Mathematica 5.0 Problem with Graphs

  • Thread starter Thread starter Pengwuino
  • Start date Start date
  • Tags Tags
    Mathematica
AI Thread Summary
The discussion revolves around issues encountered while using Mathematica for implicit plotting. The user is attempting to plot the implicit functions derived from a mathematical expression but is receiving excessive numerical output instead of just the graphs. This problem may stem from compatibility issues between different versions of Mathematica, specifically between version 4 and version 5.0. The user has defined a function and its derivatives, then attempted to create multiple plots with distinct color styles. The output is cluttered with numerical data, indicating a possible misconfiguration in the plotting commands or a version-related discrepancy. The focus is on troubleshooting the plotting process to achieve clean graphical outputs without extraneous information.
Pengwuino
Gold Member
Messages
5,112
Reaction score
20
Ok i type in all this stuff

<< Graphics`ImplicitPlot`
f[x_, y_] = 5 - 10 x*y - 4 x\^2 + 3 y - y\^4
fx[x_, y_] = D[f[x, y], x]
fy[x_, y_] = D[f[x, y], y]
p1 = ImplicitPlot[fx[x, y] == 0, {x, -4, 4}, {y, -4, 4}, PlotStyle -> RGBColor[1, 0, 0], PlotPoints -> 100]
p2 = ImplicitPlot[fy[x, y] == 0, {x, -4, 4}, {y, -4, 4}, PlotStyle -> RGBColor[0, 0, 1]]
Show[p1, p2]


And when i run it... i get a whole lot of trash. Hundreds of lines of just numbers. What i think the problem might be is that i used Mathematica 4.# at my university and emailed it to myself where i have 5.0. Does anyone know why i got all this garbage and the 2 graphs instead of just hte graphs?
 
Physics news on Phys.org
This is how I wrote it:

<<Graphics`ImplicitPlot`

f1=5-10xy-4x^2+3y-y^4;
f1x=D[f1,x];
f1y=D[f1,y];

plt1=ImplicitPlot[f1==0,{x,-4,4},{y,-4,4},PlotStyle->RGBColor[1,0,1]];
plt2=ImplicitPlot[f1x==0,{x,-4,4},{y,-4,4},PlotStyle->RGBColor[0,1,0]];
plt3=ImplicitPlot[f1y==0,{x,-4,4},{y,-4,4},PlotStyle->RGBColor[0,0,1]];

Show[{plt1,plt2,plt3}];
 

Similar threads

Replies
4
Views
2K
Replies
2
Views
2K
Replies
2
Views
3K
Replies
1
Views
2K
Replies
8
Views
3K
Replies
9
Views
3K
Replies
2
Views
2K
Back
Top