syms x n
F = log(x+abs(n))/log(x.^2+n.^2);
F3 = int(F,x,1,2);
limit(F3,n,inf)
ans = 
If I run the code, i will receive limit(int(log(n + x)/log(n^2 + x^2), x, 1, 2), n, Inf) but I want it to be a specific value which is 0.5, how can I do it. Sorry for my bad English

 채택된 답변

VBBV
VBBV 2023년 4월 23일

0 개 추천

syms x real
n = 0;
F = log(x+abs(n))./log(x.^2+n.^2);
F3 = vpaintegral(F,x,1,2)
F3 = 
0.5

댓글 수: 4

VBBV
VBBV 2023년 4월 23일
define value to n
Nguyen
Nguyen 2023년 4월 23일
Thank you, I understand your solution but are there another ways to solve the problem
VBBV
VBBV 2023년 4월 23일
편집: VBBV 2023년 4월 23일
Ok. Can you tell what specific solution you are looking at inorder to get a value of 0.5 ?
Torsten
Torsten 2023년 4월 23일
편집: Torsten 2023년 4월 23일
The OP wants his code to return 0.5 instead of repeating the problem in "ans".
There was another question of the same kind the OP deleted meanwhile.
I wonder if these homework problems are really meant to be solved with MATLAB or theoretically.
For the above question:
The sequence of functions
g_n(x) = log(x+n)./log(x.^2+n.^2)
converges uniformly on [1;2] to 1/2 as n -> Inf.
Thus integration and taking limit can be interchanged:
lim(n -> Inf) integral_{x=1}^{x=2} g_n(x) dx =
integral_{x=1}^{x=2} lim(n -> Inf) g_n(x) dx =
integral_{x=1}^{x=2} 1/2 dx = 1/2

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB에 대해 자세히 알아보기

제품

태그

질문:

2023년 4월 23일

편집:

2023년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by