How to solve an implicit equation involving another MATLAB function with symbolics?

2 views (last 30 days)
So I have the following equation for a gas turbine application
syms T013 T02 fprOF etaOF
T013 = T02 * (1 + (fprOF^((heat_property(T013,'gamma')-1)/heat_property(T013,'gamma')) - 1)/etaOF)
where I need to solve for T013. I wrote another function, 'heat_property', which also needs T013 as its input and as you can see, this make the equation implicit. Is there a pre-defined way of solving this (way I would normally do this is for instance to write an iterative solver in C/C++ but trying to start off with symbolic MATLAB)?

Accepted Answer

Torsten
Torsten on 11 Jan 2018
Edited: Torsten on 11 Jan 2018
Use "fzero" to solve
f=@(T013) T013 - (T02 * (1 + (fprOF^((heat_property(T013,'gamma')-1)/heat_property(T013,'gamma')) - 1)/etaOF))
for T013.
Since "fzero" is a numerical solver, remove all "syms" commands associated with variables in the above equation.
Best wishes
Torsten.

More Answers (0)

Categories

Find more on Symbolic Math Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!