Message Boards Message Boards

0
|
6775 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Tag Graphics [in x_,y_] is protected

Posted 9 years ago

Hello,

im trying to make som graphics with my Mathematica: f[x, y] := (1 - x^2 - y^2)/(1 + x^2 + y^2) a := -4 b := 4 c := -5 d := 5

F = Plot3D[ f[x, y], {x, a, b}, {y, c, d}, PlotLabel -> "3D.Diagramm", AspectRatio -> 1/GoldenRatio, AxesLabel -> {"x", "y", "z"}, PlotRange -> {{a, b}, {c, d}, {-1, 1}} ]

Diagramm = ContourPlot[ f[x, y], {x, a, b}, {y, c, d}, PlotLabel -> "Höhendiagramm", ColorFunction -> "BlueGreenYellow", AspectRatio -> 1/GoldenRatio

] And as an answer i get: "Tag Graphics [in x,y] is protected"

Can anyone help me? Thanks

POSTED BY: Sandra Albrecht

Stick a bit to the syntax and everything works:

ClearAll[f, a, b, c, d]
f[x_, y_] := (1 - x^2 - y^2)/(1 + x^2 + y^2) 
a = -4; b = 4; c = -5; d = 5


(* F= *)Plot3D[f[x, y], {x, a, b}, {y, c, d}, 
 PlotLabel -> "3D.Diagramm", AspectRatio -> 1/GoldenRatio, 
 AxesLabel -> {"x", "y", "z"}, PlotRange -> {{a, b}, {c, d}, {-1, 1}}]




(* Diagramm= *)ContourPlot[f[x, y], {x, a, b}, {y, c, d}, 
 PlotLabel -> "Höhendiagramm", ColorFunction -> "BlueGreenYellow", 
 AspectRatio -> 1/GoldenRatio]

the function definition was in error and the definition for a,b,and c needs a closing semicolon. d as the last one can go without a semicolon: CompoundExpression

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

Group Abstract Group Abstract