Questions tagged [fmzm]
3 questions
                    
                    2
                    
            votes
                
                1 answer
            
        How to print variables using FMZM high precision fortran
I would like to use FM package capabilities for the study of a problem in number theory.
I installed the package, compiled libraries, and ran the two test suites supplied, all without any problems.
I wrote test.f:
   use fmzm
   TYPE (IM), SAVE ::…
        
        Tommy R. Jensen
        
- 33
 - 4
 
                    2
                    
            votes
                
                1 answer
            
        Big integer factorial function in Fortran, as efficient as python or Haskell
Here's my factorial function in Fortran.
module facmod
  implicit none
contains
  function factorial (n) result (fac)
    use FMZM 
    integer, intent(in)  :: n
    integer              :: i
    type(IM)             :: fac
    fac = 1
   …
        
        Mittenchops
        
- 18,633
 - 33
 - 128
 - 246
 
                    2
                    
            votes
                
                1 answer
            
        Display arbitrary length formatted string using IM_FORM in the Fortran FMZM multiple precision library
I'm looking at the documentation for FMZM here, and from section 8.(c), I understand that:
(c) Subroutine FM_FORM does similar formatting, but we supply a character string for
    the formatted result.  After declaring the strings at the top of the…
        
        Mittenchops
        
- 18,633
 - 33
 - 128
 - 246