Enter symbolic multivariable equalities in matlab
1 回表示 (過去 30 日間)
古いコメントを表示
Hi everybody,
I'm trying to implement a symbolic equality but instead of define a variable, I need to define a group of variables. My equation is like this : theta^2*ue^b/nu=a*int(ue^(b-1),x0,x) The problem is that matlab does not allow me to have multiple variables on the left hand side of the = sign. Ofcourse I can rewrite it to a theta = ... but I need to represent my answer in the form of theta^2*ue^b/nu. I tried defining an equation like this eq1= ' theta^2*ue^b/nu=a*int(ue^(b-1),x0,x)' but then it just defines it as a string, and I lose arithmetic possibilities (such as a substitution which i need to perform)
I know Matlab 2012b has the == function for the symbolic toolbox, but I'm running 2011a. Does anyone know a way to this?
Thanks in advance for your time.
Roy
0 件のコメント
回答 (1 件)
Azzi Abdelmalek
2012 年 10 月 18 日
syms theta nu a ue b x0 x
equation=theta^2*ue^b/nu-a*int(ue^(b-1),x0,x)
2 件のコメント
Azzi Abdelmalek
2012 年 10 月 18 日
編集済み: Azzi Abdelmalek
2012 年 10 月 18 日
this équation is by default equal to zero
solve(equation) is the same then solve(equation==0)
参考
カテゴリ
Help Center および File Exchange で Symbolic Math Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!