A simple integration problem!

Hey all,
I am trying to solve a simple integral expression using matlab, but it calculates it at a wrong way. let us for example integrate the expression '1+x' by int('1+x',x), it will give us an answer wich is (1+x)^2/2, but the right answer is x^2+x, so what should I do in order to let matlab work with the expression as it assumed to be? any help please!! thanks all

Risposte (1)

Azzi Abdelmalek
Azzi Abdelmalek il 15 Ago 2012
Modificato: Azzi Abdelmalek il 15 Ago 2012
(x^2+x)'=2x+1
that means that your result is false. now matlab result :
((1+x)^2/2)'=1+x
which correspond to your function.

Questa domanda è chiusa.

Tag

Richiesto:

il 15 Ago 2012

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by