Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Metaprogramming/PARI-GP/metaprogramming.parigp
Normal file
14
Task/Metaprogramming/PARI-GP/metaprogramming.parigp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
long
|
||||
smin0ss(long a, long b)
|
||||
{
|
||||
long c = a < b ? a : b;
|
||||
return c > 0 ? c : 0;
|
||||
}
|
||||
|
||||
|
||||
GEN
|
||||
gmin0(GEN a, GEN b)
|
||||
{
|
||||
GEN c = gcmp(a, b) < 1 ? a : b; /* copy pointer */
|
||||
return signe(c) > 0 ? gcopy(c) : gen_0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue