Making a proper integral equation

Hello I'm having trouble computing this function
I've tried doing it in this format but I'm struggling on actually making the equation itself.
syms x
f = x^-1*(sin*(x^-1*log(x))) ;
Fint = int(f,x,[0 1])
Fvpa = vpa(Fint)
However its giving me an "Error using sin"
How would I find the integral of this function?

 採用された回答

VBBV
VBBV 2022 年 11 月 7 日

0 投票

f = x^-1*(sin(x^-1*log(x))) ; %

5 件のコメント

VBBV
VBBV 2022 年 11 月 7 日
As sin is builtin function it expects input within ( ) . If you include * between sin and ( then it violates the syntax of sin function provided here
Howie
Howie 2022 年 11 月 7 日
Why doesn't it compute my integral?
syms x
f = x^-1*(sin(x^-1*log(x))) ;
Fint = int(f,x,[0 1])
Fint = 
Fvpa = vpa(Fint)
Fvpa = 
VBBV
VBBV 2022 年 11 月 7 日
編集済み: VBBV 2022 年 11 月 7 日
syms x
f = x^-1*(sin(x^-1*log(x))) ;
Fint = int(f,x,[0 1]) % symbolic integration
Fint = 
f = @(x) x.^-1.*(sin(x.^-1.*log(x))) ; % numeric integration
Fvpa = integral(f,0,1)
Warning: Reached the limit on the maximum number of intervals in use. Approximate bound on error is 7.5e+00. The integral may not exist, or it may be difficult to approximate numerically to the requested accuracy.
Fvpa = 4.0483
It has evaluated the expression, but
(a) symbolically in first case,
(b) numerically in second case
Howie
Howie 2022 年 11 月 7 日
thank you!
Torsten
Torsten 2022 年 11 月 7 日
Did you plot the function ?
syms x
f = x^-1*(sin(x^-1*log(x))) ;
fplot(f,[0.01 0.1])

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

その他の回答 (0 件)

カテゴリ

製品

リリース

R2022a

質問済み:

2022 年 11 月 7 日

コメント済み:

2022 年 11 月 7 日

Community Treasure Hunt

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

Start Hunting!

Translated by