Category talk:Wren-gmp: Difference between revisions

m
Fixed syntax highlighting.
(→‎Source code (Wren): Added multinomial method to Mpz class.)
m (Fixed syntax highlighting.)
Line 32:
 
==Source code (Wren)==
<langsyntaxhighlight lang=ecmascript>/* Module "gmp.wren" */
 
import "./trait" for Comparable
Line 1,150:
static min(sf) { sf.reduce { |acc, x| (x > acc) ? x : acc } }
static max(sf) { sf.reduce { |acc, x| (x < acc) ? x : acc } }
}</langsyntaxhighlight>
 
==Source code (C)==
<langsyntaxhighlight lang=c>/* gcc -O3 wren-gmp.c -o wren-gmp -lmpfr -lgmp -lwren -lm */
 
#include <stdio.h>
Line 3,217:
mpfr_free_cache();
return 0;
}</langsyntaxhighlight>
9,476

edits