Vous suivez désormais cette question
- Les mises à jour seront visibles dans votre flux de contenu suivi.
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails.
int function return ans in 'int' itself . I got the expression J and L in terms of g but the integration of expression U1 return as in int function. Thanks in advance
Réponses (2)
40 commentaires
- Since R2016b, vpaintegral() can be used. vpaintegral() will examine the expression, and if it sees any unbound symbolic variables other than the variable of integration, then it will leave the integration unevaluated. In the case of having two levels of integration, if you have three total symbolic variables (two being integrated over plus one other) then it would not try to calculate the outer integral -- not until you substituted in a specific number value for the third variable. When the integration does eventually go ahead, it will be done using symbolic floating point numbers
- Since R2019b, when you use int() you can specify 'hold', true and MATLAB will postpone integration until you use release() to ask that it go ahead with the integration. When the integration does eventually go ahead, it will be done using full indefinite precision, looking for a closed form formula
- if symbolic integration using int() decides that the integral is too complicated for it, then it will return the unevaluated integral in the form of a symbolic int(). With some struggle, you can force a complicated-but-feasible symbolic integral to not be feasible so that symbolic int() is returned (probably after a long time), and then later force that term to drop out... but it probably will then waste time doing the integral all over again, so you mostly do not gain much. And the calculation would be done in full symbolic indefinitely precise mode
- matlabFunction() looks at the vpaintegral() call and gives an error saying it does not know what the "_range" operation is. "_range" is the internal way vpaintegral records the limit of integration. I don't know why Mathworks did not make this work years ago.
- matlabFunction() looks at the 'hold' option of int() and says it doesn't know how to do that
Voir également
Catégories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Une erreur s'est produite
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.
Amériques
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asie-Pacifique
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)