Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
if2(c1,c2,tt,tf,ft,ff)={
|
||||
if(c1,
|
||||
if(c2,tt,tf)
|
||||
,
|
||||
if(c2,ft,ff)
|
||||
)
|
||||
};
|
||||
|
|
@ -0,0 +1,14 @@
|
|||
GEN
|
||||
if2(GEN c1, GEN c2, GEN tt, GEN tf, GEN ft, GEN ff)
|
||||
{
|
||||
if (gequal0(c1))
|
||||
if (gequal0(c2))
|
||||
return ff ? closure_evalgen(ff) : gnil;
|
||||
else
|
||||
return ft ? closure_evalgen(ft) : gnil;
|
||||
else
|
||||
if (gequal0(c2))
|
||||
return tf ? closure_evalgen(tf) : gnil;
|
||||
else
|
||||
return tt ? closure_evalgen(tt) : gnil;
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
install("if2","GGDEDEDEDE","if2","./if2.gp.so");
|
||||
addhelp(if2, "if2(a,b,{seq1},{seq2},{seq3},{seq4}): if a is nonzero and b is nonzero, seq1 is evaluated; if a is nonzero and b is zero, seq2 is evaluated; if a is zero and b is nonzero, seq3 is evaluated; otherwise seq4. seq1 through seq4 are optional.");
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
/*
|
||||
GP;install("if2","GGDEDEDEDE","if2","./if2.gp.so");
|
||||
GP;addhelp(if2, "if2(a,b,{seq1},{seq2},{seq3},{seq4}): if a is nonzero and b is nonzero, seq1 is evaluated; if a is nonzero and b is zero, seq2 is evaluated; if a is zero and b is nonzero, seq3 is evaluated; otherwise seq4. seq1 through seq4 are optional.");
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue