Brereton, Ashley on Fri, 18 Sep 2020 18:40:41 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Fortran compatibility


Dear Bill,


This is amazing. 


It works perfectly, thank you so much for all your effort on this - it really is greatly appreciated.


Best wishes,

Ash


From: Bill Allombert <Bill.Allombert@math.u-bordeaux.fr>
Sent: 18 September 2020 15:39:47
To: pari-users@pari.math.u-bordeaux.fr
Subject: Re: Fortran compatibility
 
On Wed, Sep 16, 2020 at 10:37:41PM +0000, Brereton, Ashley wrote:
> Many thanks for your suggestions and your quick responses!
>
>
> I will have a go at using gp2C!
>
>
> Concerning X, this may or not be a problem.
>
>
> X in my case is something like:
>
>
> X=1e36 x log(10000)
>
>
> I hoped I could handle the multiplications inside Pari somehow.

Please find the following fortran90 program (you need to link it with -lpari)
that should do what you want more or less

%gfortran appelc.f90 -Wall -O3 -lpari -o appelc
%./appelc
log(10000)%(2*Pi)  = 2.927155065

Cheers,
Bill.