Solving Integrals with MATLAB

I am stuck on one of the problems i am working on. Could anyone tell me how to write a code for this problem? Using the quadl and the int command.
Problem: f(x)=integral sign(1+5/1+x^2)dx
upper bound is 1
lower bound is 0

4 件のコメント

madhan ravi
madhan ravi 2019 年 4 月 22 日
What have we tried? Read the documentation of integral().
Walter Roberson
Walter Roberson 2019 年 4 月 22 日
x^2 cannot be negative for real x, but could be 0.
Adding 1 and (5/1) to that gives you 6+x^2, and for real x that has a mininum value of 6 -- always positive.
sign() of an always-positive value is always 1.
Therefore you are taking the integral of the constant 1 over a range. The indefinite integral of that is x, so the definite integral is (upperbound minus lowerbound), 1 - 0, for a total of 1.
Therefore the value of your integral is 1.
David Wilson
David Wilson 2019 年 4 月 22 日
I interpreted it as "integral_sign", not integral ( sgn(...) dx).
KALYAN ACHARJYA
KALYAN ACHARJYA 2019 年 4 月 22 日
編集済み: KALYAN ACHARJYA 2019 年 4 月 22 日
Read the Walter comment and clarify on (1+5/1+x^2)??
For integral, look here, still unsolved let us know?

サインインしてコメントする。

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

リリース

R2018b

質問済み:

2019 年 4 月 22 日

編集済み:

2019 年 4 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by