baryrat icon indicating copy to clipboard operation
baryrat copied to clipboard

How to approximate a univariate complex function with a complex argument using BRASIL?

Open rdguerrerom opened this issue 2 years ago • 4 comments

Hi,

I have attempted to approximate a univariate complex function with a complex argument using BRASIL. However, it appears that the BRASIL method does not support this type of approximation. Can you provide guidance on the implementation of this functionality? If so, I would be really happy to help and attempt to contribute a little something back to this nice project.

rdguerrerom avatar Apr 20 '23 04:04 rdguerrerom

Hello,

Are you talking about a complex-valued function defined over a real interval? I believe this should be possible, though I'm not sure if all the details are implemented.

Best approximation over a complex domain, on the other hand, is not possible with BRASIL. Best approximation over complex domains is harder than over intervals.

Maybe you could give your example.

c-f-h avatar Apr 23 '23 16:04 c-f-h

Hello,

Thanks a lot for answering.

The goal is to speedup the evaluation of the molecular incomplete gamma function with a complex argument.

What do you think?

rdguerrerom avatar Apr 23 '23 18:04 rdguerrerom

If there is a complex argument, it's not possible to use BRASIL since it only works over intervals.

You could however use the AAA algorithm, which is also contained in the baryrat package.

c-f-h avatar Apr 23 '23 19:04 c-f-h

@c-f-h, thanks a lot for your swift response.

rdguerrerom avatar Apr 25 '23 01:04 rdguerrerom