How to plot sin(xy)=sin(x)+sin(y)?

11 visualizaciones (últimos 30 días)
Simple Life
Simple Life el 22 de Feb. de 2022
Comentada: chethan el 2 de Mayo de 2025
It is easy to plot y=sin(x), but how to sin(xy)=sin(x)+sin(y)?
  1 comentario
chethan
chethan el 2 de Mayo de 2025
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))

Iniciar sesión para comentar.

Respuesta aceptada

John D'Errico
John D'Errico el 22 de Feb. de 2022
This is called an implicit function. Use fimplicit. Again, easy.
fimplicit(@(x,y) sin(x.*y) - sin(x) - sin(y))

Más respuestas (1)

Carlos Guerrero García
Carlos Guerrero García el 22 de Nov. de 2022
"contour" command provides another way to plot an implicit function defined by an expression like F(x,y)=0. For the implicit function in this question, the following code can also be used:
[x,y]=meshgrid(-5:0.01:5); % Establising the canvas...
contour(x,y,sin(x.*y)-sin(x)-sin(y),[0 0]) % ...for plotting sin(xy)-sin(x)-sin(y)=0

Categorías

Más información sobre Line Plots en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by