new to mupad help
Afficher commentaires plus anciens
I thought I would try to learn mupad by solving a slightly confounded quadratic equation, which results after an equation substitution. My problem is, the answer mupad is giving me includes the variable that should have been eliminated. Could you look at the attached file and show to how to give the desired solution; it is probably simple for an experienced mupad user? I hard coded the desired equation at the bottom of the file; it does not include the eliminated variable. Thanks.
4 commentaires
Mischa Kim
le 10 Juin 2015
The attachment is missing.
Walter Roberson
le 10 Juin 2015
Is the variable to be eliminated named Z ? If so then there is a possibility that you are seeing a different Z -- though the circumstances I am thinking of should require a cubic or higher rather than a quadratic.
Andy
le 14 Juin 2015
Walter Roberson
le 14 Juin 2015
Sorry, I can't read MuPad Notebooks. Screen capture please (and text form of the formula would be good)
Réponses (1)
Martin Brown
le 17 Juin 2015
Hi, I think there are a couple of problems with the attached notebook
1) When I executed the individual commands (notebook - evaluate all), the Pavg in the final solution disappears, so it looks like you've got some previous working in the attached notebook. Just re-evaluate the commands
2) solve isn't giving a very helpful output. For some reason, it thinks your "eqn" variable is actually a relation, not an equation.
testtype(eqn, Type::Equation)
When you specify the equation as part of the solve command like
simplify(solve(-353/10*`Delta;P`*(`Delta;P`/2-P1)/Tavg = c, `Delta;P`));
You get roughly the answer you want. Putting decimals in gives the result in floating point format.
1 commentaire
Andy
le 17 Juin 2015
Catégories
En savoir plus sur Get Started with MuPAD dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!