First-class functions: Difference between revisions

Line 1,099:
 
=={{header|PARI/GP}}==
{{incomplete|PARI/GP|Fails to demonstrate that the result of applying the composition of each function in A and its inverse in B to a value, is the original value}}
{{works with|PARI/GP|2.4.2 and above}}
<lang parigp>compose(f,g)={
Line 1,116 ⟶ 1,115:
<lang parigp> A=[sin, cos, x->x^2];
B=[asin, acos, x->sqrt(x)];</lang>
 
Output:
<pre>0.5000000000000000000000000000
0.5000000000000000000000000000
0.5000000000000000000000000000</pre>
 
=={{header|Perl}}==