Plotting f (x, y) = ln(x^2 + y^2 ) - Mathematica Help

  • Context: Mathematica 
  • Thread starter Thread starter kash-k
  • Start date Start date
  • Tags Tags
    Mathematica
Click For Summary

Discussion Overview

The discussion revolves around plotting the function f(x, y) = ln(x^2 + y^2) using Mathematica. Participants explore different methods for creating three-dimensional plots, including Cartesian and cylindrical coordinate systems.

Discussion Character

  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant seeks assistance in plotting the function f(x, y) = ln(x^2 + y^2).
  • Another participant suggests using the Plot3D function with the syntax Plot3D[f, {x, xmin, xmax}, {y, ymin, ymax}] to create a three-dimensional plot.
  • A further response refines the suggestion by providing the correct syntax: Plot3D[Log[x^2 + y^2], {x, xmin, xmax}, {y, ymin, ymax}] and defines the function as f[x_,y_]=Log[x^2 + y^2].
  • One participant expresses a desire to create symmetric plots in both x and y using the Cartesian coordinate system and the ParametricPlot3D command, indicating uncertainty about the previous suggestions.
  • A later reply mentions that symmetry in the x and y axes can be achieved by setting xmin=ymin and xmax=ymax in either Plot3D or ParametricPlot3D.
  • Links to Mathematica documentation are provided for further reference.

Areas of Agreement / Disagreement

The discussion includes multiple viewpoints on how to achieve the desired plots, and there is no consensus on the best approach to implement symmetry in the plots.

Contextual Notes

Participants have not specified the exact values for xmin, xmax, ymin, or ymax, which may affect the plotting results. There is also a lack of clarity on the implementation of cylindrical coordinates in the context of the discussion.

kash-k
Messages
17
Reaction score
0
I'm trying to plot this
f (x, y) = ln(x^2 + y^2 )

any one got a idea how to?
 
Physics news on Phys.org
Plot3D[f, {x, xmin, xmax}, {y, ymin, ymax}]
make a three-dimensional plot of f as a function of the
variables x and y
 
More accurately,

Plot3D[Log[x^2 + y^2], {x, xmin, xmax}, {y, ymin, ymax}]

or

f[x_,y_]=Log[x^2 + y^2]
Plot3D[f[x,y], {x, xmin, xmax}, {y, ymin, ymax}]
 
i want to make this symmetric in both x and y with 2 graph by using the cartesian coordinate system with the plot3D command and secondly using the cyclindrical coordinate system using the parametricplot3d command. been a long time since I've used mathematica but i don't think your codes does the above right?
 
anyone ?
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K