Solve for exponent variable

조회 수: 1 (최근 30일)
Mohamed Mahmoud
Mohamed Mahmoud 2020년 10월 24일
댓글: Mohamed Mahmoud 2020년 10월 24일
syms x y z a b c Q N P S
Q= x^a
S = solve(Q==(x^4),a)
S-4
% why the answer is not zero and how to make it?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 10월 24일
You need to specify the assumption that .
syms x y z a b c Q N P S
assume(x, 'positive')
Q = x^a
S = simplify(solve(Q==(x^4),a))
S-4
  댓글 수: 2
Mohamed Mahmoud
Mohamed Mahmoud 2020년 10월 24일
It worked for defined numbers but not the variables
assume(T,'positive')
S=T^2*T^a
(solve(S==(T^1),a))
Mohamed Mahmoud
Mohamed Mahmoud 2020년 10월 24일
Solved TY

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

추가 답변 (0개)

카테고리

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by