# 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 (최근 30일)
Mahak SINGH CHAUHAN 2014년 3월 11일
편집: Mahak SINGH CHAUHAN 2019년 9월 27일
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..

댓글을 달려면 로그인하십시오.

### 채택된 답변

Doug Hull 2014년 3월 11일
ezplot('x^2 + y^3 - 10')
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Mahak SINGH CHAUHAN 2014년 3월 11일
편집: Mahak SINGH CHAUHAN 2014년 3월 11일
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

댓글을 달려면 로그인하십시오.

### 추가 답변 (1개)

Matt J 2014년 3월 11일
편집: Matt J 2014년 3월 11일
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이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Mahak SINGH CHAUHAN 2014년 3월 11일
Thank You very much dear Matt J. Its really helpful.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

### 태그

아직 태그를 입력하지 않았습니다.

### Community Treasure Hunt

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

Start Hunting!

Translated by
The text passage contains a mathematical question and an example answer provided within the question itself. The question asks whether it is possible to find the zeroes of a given equation at certain values of x and y, and the example provided suggests that x=3 and y=1 is a zero of the equation.
single_question_with_answer
Given a text passage, determine:
    1. If it contains a mathematical question (including word problems or calculations)
    2. If an answer to that mathematical question is provided in the text

First, describe the content structure you found in 1-2 sentences.

Then provide your analysis in the following format:
TYPE: <one of the following values>
- NO_QUESTION
- SINGLE_QUESTION
- SINGLE_QUESTION_WITH_ANSWER
- MULTIPLE_QUESTIONS
- MULTIPLE_QUESTIONS_WITH_ANSWERS
system
# 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 (최근 30일)
Mahak SINGH CHAUHAN 2014년 3월 11일
편집: Mahak SINGH CHAUHAN 2019년 9월 27일
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..

댓글을 달려면 로그인하십시오.

### 채택된 답변

Doug Hull 2014년 3월 11일
ezplot('x^2 + y^3 - 10')
##### 댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Mahak SINGH CHAUHAN 2014년 3월 11일
편집: Mahak SINGH CHAUHAN 2014년 3월 11일
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

댓글을 달려면 로그인하십시오.

### 추가 답변 (1개)

Matt J 2014년 3월 11일
편집: Matt J 2014년 3월 11일
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이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Mahak SINGH CHAUHAN 2014년 3월 11일
Thank You very much dear Matt J. Its really helpful.

댓글을 달려면 로그인하십시오.

### 카테고리

Help CenterFile Exchange에서 Spline Postprocessing에 대해 자세히 알아보기

### 태그

아직 태그를 입력하지 않았습니다.

### Community Treasure Hunt

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

Start Hunting!

Translated by
user
The text passage contains a mathematical question and an example answer provided within the question itself. The question asks whether it is possible to find the zeroes of a given equation at certain values of x and y, and the example provided suggests that x=3 and y=1 is a zero of the equation.

TYPE: SINGLE_QUESTION_WITH_ANSWER