# If I have a equation, suppose x.^2+y.^3-10 ; if I put the values of x and y randomly, Can I find the zeroes of this equation at certain values of x and y ? for example x=3 and y=1, there is zero.

1 visualización (últimos 30 días)
Mahak SINGH CHAUHAN el 11 de Mzo. de 2014
Editada: Mahak SINGH CHAUHAN el 27 de Sept. de 2019
If I have a equation, suppose x.^2+y.^3-10 ; if I put the values of x and y randomly, Can I find the zeroes of this equation at certain values of x and y ? for example x=3 and y=1, there is zero. Please help me..
##### 0 comentariosMostrar -2 comentarios más antiguosOcultar -2 comentarios más antiguos

Iniciar sesión para comentar.

Doug Hull el 11 de Mzo. de 2014
ezplot('x^2 + y^3 - 10')
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Mahak SINGH CHAUHAN el 11 de Mzo. de 2014
Editada: Mahak SINGH CHAUHAN el 11 de Mzo. de 2014
Dear Matt J; Thanks for this answer. Could I ask one more thing. If I have have more than two variables like x.^2+y.^2-z.^3 ? Is there any way to find ? I know its complicated and may be, I asked a stupid question

Iniciar sesión para comentar.

### Más respuestas (1)

Matt J el 11 de Mzo. de 2014
Editada: Matt J el 11 de Mzo. de 2014
Given a fixed value of x, you can find one corresponding y at which the expression is zero as follows
x=3;
f=@(y) x.^2+y.^3-10;
y_zero = fzero(f, y_guess);
Although, when f() is a polynomial, as in your example, it would be more efficient to use ROOTS instead of FZERO. Also, ROOTS will find you all solutions y for that x, instead of just one.
Similarly for given y, you can find one associated x as follows
y=1;
f=@(x) x.^2+y.^3-10;
x_zero = fzero(f, x_guess);
##### 1 comentarioMostrar -1 comentarios más antiguosOcultar -1 comentarios más antiguos
Mahak SINGH CHAUHAN el 11 de Mzo. de 2014
Thank You very much dear Matt J. Its really helpful.

Iniciar sesión para comentar.

### Categorías

Más información sobre Spline Postprocessing en Help Center y File Exchange.

### Etiquetas

Aún no se han introducido etiquetas.

### Community Treasure Hunt

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

Start Hunting!

Translated by