필터 지우기
필터 지우기

How to convert function with elliptic integrals containing symbolic variables to that which contain numerical values?

조회 수: 1 (최근 30일)
syms x a
f=(1/sqrt(x*((x^2)-a)))
d=(int(f))
f =
1/(-x*(- x^2 + a))^(1/2)
d =
-(2*a^(1/2)*(-x/a^(1/2))^(1/2)*ellipticF(asin((-x/a^(1/2))^(1/2)), -1)*(1 - x/a^(1/2))^(1/2)*(x/a^(1/2) + 1)^(1/2))/(x^3 - a*x)^(1/2)
How shall I give values to x and a as vectors? I need to plot the function for certain values.

채택된 답변

Torsten
Torsten 2018년 10월 11일
편집: Torsten 2018년 10월 11일
d_num = matlabFunction(d);
d_num(1,3)
  댓글 수: 2
dayu
dayu 2018년 10월 22일
Sir, what does 1 and 3 represents? values for x and a? I am getting a result with complex number. But I want real number. What shall I do?
Torsten
Torsten 2018년 10월 22일
Choose x >= sqrt(a) for the interval where you want to integrate the function.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Symbolic Variables, Expressions, Functions, and Preferences에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by