필터 지우기
필터 지우기

how to confine the solutions when solving a system of equations

조회 수: 1 (최근 30일)
studentU
studentU 2015년 5월 18일
편집: studentU 2015년 5월 18일
hi,
how can I set the interval of definition of variables, solves using the function solve ()?
interval solution: x0<x<x1, y0<y<y1, z0<z<z1, equations to resolve: f(x,y)=0,f(x,z)=0 and f(y,z)=0

답변 (1개)

Walter Roberson
Walter Roberson 2015년 5월 18일
In the solve() documentation read down to "Solving Inequalities". You can, for example,
syms x y
f = .... some formula
solve(f, x0 < x, x < x1, y0 < y, y < y1)
  댓글 수: 1
studentU
studentU 2015년 5월 18일
편집: studentU 2015년 5월 18일
>> i try to run: >> syms x y G F X1 X2 el
[a,b] = solve('G*cos(y)+F*sin(y)=1',' cos(y)*sin(el)-sin(y)*X2*cos(x)-sin(y)*X3*sin(x)=1','-90<y','y<90','-180<x','x<180');
but it's generate this error:
z = C_ z13 = C_ z23 = C_ z33 = C_
> In solve at 94 ??? Error using ==> solve>assignOutputs at 153 6 variables does not match 2 outputs.
Error in ==> solve at 97 varargout = assignOutputs(nargout,sol);

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

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by