Matlab can't integrate inverse sine function? Advice required

1 回表示 (過去 30 日間)
EE_student
EE_student 2020 年 12 月 23 日
編集済み: EE_student 2021 年 4 月 24 日
Hi guys,
I am trying to come up with an equation for the integral of a traingular wave(one such electronics question is that a triangular wave is inputted into an op-amp integrator). The equation for a traingle wave as you know is y= 2a/pi * (arcsine(sin(((2pi)/p)*x)) where a and p represent the amplitude and period respectively.
I need an expression for the integral of y as I mentioned before but for some reason Matlab is unable to do that?!?! Please tell me how to do this!!! Screenshot attached. Here a=2.5 and p=1
Here is my code if you can't see the screenshot:
syms x
expr(x)= (2.5*2/pi)*asin(sin(2*pi*x))
t= vpa(simplify(int(expr,x)))

回答 (2 件)

Anshika Chaurasia
Anshika Chaurasia 2020 年 12 月 28 日
Hi,
You can use 'IgnoreAnalyticConstraints' argument as true in int.
syms x;
expr(x)= (2.5*2/pi)*asin(sin(2*pi*x));
t= vpa(simplify(int(expr,x,'IgnoreAnalyticConstraints',true)));
Refer to the following document for more information.
  1 件のコメント
EE_student
EE_student 2020 年 12 月 28 日
編集済み: EE_student 2020 年 12 月 28 日
Thank you for the answer but why do I get a different expression when the triangular wave is integrated using the online calculator(at symbolab). I will show a screenshot, are they both the same thing?
Slightly different amplitude and period is used but it shouldn't matter.

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


EE_student
EE_student 2021 年 4 月 24 日
Response to Anshika:
Thank you for the answer but why do I get a different expression when the triangular wave is integrated using the online calculator(at symbolab). I will show a screenshot, are they both the same thing?
Slightly different amplitude and period is used but it shouldn't matter.
https://www.mathworks.com/matlabcentral/answers/uploaded_files/472692/Symbolab%20-%20Solutions.pdf

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by