Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 1.9e+04. The integral may not exist, or it may be difficult to approximate numerically to the requested accuracy.
@Aditya Zade, if you plot the integrand function, you can see the oscillatory singularities (division-by-zero) repeat at regular intervals along the time-axis.
Hi @Sam Chak, thank you for the clarification. However, I am trying to integrate from t=0 to t=1/360 where the function is continuous. So, I thought I could integrate it.
Mathematica also produced the same result as MATLAB. You can follow the example provided by @Walter Roberson. The integrand function is likely intended to differ from yours to encourage you to learn how to write the code independently.
This will reinforce your memory in learning how to calculate definite integrals (the area under a curve between two fixed limits) in MATLAB.
If you attempt to solve a mathematical equation or an integral problem using functions from the Symbolic Math Toolbox, the answers will be returned as symbolic expressions.
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Translated by
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.