You are on page 1of 4

Name: DENMARK TABASAN

Number of letters in my first name: (DENMARK) = 7


Number of letters in my family name: (TABASAN) = 7
Used Command:

% Define the function to plot


f = @(x,y) cos(x.^2 + y.^2) + x.*y;

% Define the range of x and y values


x = linspace(-4, 7, 100);
y = linspace(-4, 7, 100);

% Create a meshgrid of x and y values


[X,Y] = meshgrid(x,y);

% Evaluate the function at all points in the meshgrid


Z = f(X,Y);

% Plot the function using fimplicit


fimplicit(f, [-4, 7, -4, 7]);

% Add labels and title to the plot


xlabel('x');
ylabel('y');
title('cos(x^2 + y^2) + xy = 0');
MATLAB INPUT
FIGURE
Number of letters in my first name: (DENMARK) = 7
Number of letters in my family name: (TABASAN) = 7

Used Command:

% Define the function to plot


f = @(x,y,z) sin(x.^2 + y.^2 + z.^2) - (x.^2) .* (y.^2) .* (z.^2);

% Define the range of x and y values


x = linspace(-4, 7, 100);
y = linspace(-4, 7, 100);

% Create a meshgrid of x and y values


[X,Y] = meshgrid(x,y);

% Solve for the corresponding z values using fimplicit3


fimplicit3(@(x,y,z) f(x,y,z), [-4, 7, -4, 7, -10, 10]);

% Add labels and title to the plot


xlabel('x');
ylabel('y');
zlabel('z');
title('sin(x^2 + y^2 + z^2) - (x^2) (y^2) (z^2) = 0');

MATLAB INPUT
FIGURE

You might also like