Resolving Mathematica 5.0 Problem with Graphs

  • Context: Mathematica 
  • Thread starter Thread starter Pengwuino
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary
SUMMARY

The discussion addresses a problem encountered when using Mathematica 5.0 for graphing implicit functions. The user attempted to plot implicit functions derived from a polynomial equation but received excessive numerical output instead of the expected graphs. The issue is attributed to potential compatibility problems between Mathematica 4.x and 5.0, particularly in the way implicit plots are handled. The user provided code snippets demonstrating the use of the ImplicitPlot function and the differentiation of the polynomial.

PREREQUISITES
  • Familiarity with Mathematica 5.0 syntax and functions
  • Understanding of implicit functions and their graphical representation
  • Basic knowledge of differentiation in Mathematica
  • Experience with plotting functions in Mathematica
NEXT STEPS
  • Explore the differences between Mathematica 4.x and 5.0, focusing on graphing functions
  • Learn about the ImplicitPlot function in Mathematica 5.0
  • Investigate troubleshooting techniques for excessive output in Mathematica
  • Review best practices for transitioning code between different versions of Mathematica
USEFUL FOR

Mathematica users, educators in mathematics, and anyone involved in computational graphing who seeks to resolve compatibility issues between different versions of Mathematica.

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=[itex]5-10xy-4x^2+3y-y^4[/itex];
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 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K