필터 지우기
필터 지우기

find x given y

조회 수: 3 (최근 30일)
Jarrod
Jarrod 2023년 10월 10일
답변: Walter Roberson 2023년 10월 10일
%W=3t^2+6t
%W=3t(t+2)
%(-(b)+sqrt(b^2-(4*a*c))/2*a)
%(-(b)-sqrt(b^2-(4*a*c))/2*a)
syms x
W=3*x.^2+6*x;
t1a=solve(3*x.^2+6*x == 3);
t2a=solve(3*x.^2+6*x == 9);
t3a=solve(3*x.^2+6*x == 45);
this is what i have right now but i only want the possitive x value

채택된 답변

Walter Roberson
Walter Roberson 2023년 10월 10일
syms x positive
W=3*x.^2+6*x;
t1a=solve(W == 3)
t1a = 
t2a=solve(W == 9)
t2a = 
1
t3a=solve(W == 45)
t3a = 
3

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Numbers and Precision에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by