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?

 Akzeptierte Antwort

Ameer Hamza
Ameer Hamza am 24 Okt. 2020

0 Stimmen

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 Kommentare

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 am 24 Okt. 2020
Solved TY

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Financial Toolbox finden Sie in Hilfe-Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by