How to call kummerU for a stand alone program

Can someone help me with the question how to call the Matlab function kummerU used in an application which I want to compile for stand alone use?
Thanks in advance,
Ed Veling
Matlab, R2025a

댓글 수: 1

Thanks for all respondents.
Since I need a script for the KummerU(a,b,z) function for complex a and z, I can not use the suggestions.

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

답변 (3개)

Walter Roberson
Walter Roberson 2026년 6월 9일

0 개 추천

Unfortunately, kummerU is defined strictly by the Symbolic Toolbox, and nothing in the Symbolic Toolbox can be compiled.
You would need to take a different approach, such as explicitly calculating the integral; https://www.mathworks.com/help/symbolic/sym.kummeru.html#description

댓글 수: 1

The GNU Sclientific Library has a function for this calculation.
double gsl_sf_hyperg_U_int (int m, int n, double x)
int gsl_sf_hyperg_U_int_e (int m, int n, double x, gsl sf result *result)
These routines compute the confluent hypergeometric function U (m, n, x) for integer parameters m, n

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

Torsten
Torsten 2026년 6월 9일
편집: Torsten 2026년 6월 10일

0 개 추천

As far as I know, nothing in the symbolic toolbox can be compiled. And "kummerU" is a symbolic function ...
Try to find a reliable numerical implementation of the function.
John D'Errico
John D'Errico 2026년 6월 9일

0 개 추천

You cannot do it from MATLAB, as stated by others. However, it looks like python does offer similar functionality. And I believe you can compile python code.
Perhaps this is a route you can take.

카테고리

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

태그

질문:

2026년 6월 9일

댓글:

2026년 6월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by