Exponentiation with infix operators in (or operating on) the base: Difference between revisions

Content deleted Content added
Chunes (talk | contribs)
Add Factor
Chunes (talk | contribs)
m →‎{{header|Factor}}: array literals are a thing
Line 59: Line 59:


=={{header|Factor}}==
=={{header|Factor}}==
<lang factor>USING: arrays infix locals prettyprint sequences
<lang factor>USING: infix locals prettyprint sequences
sequences.generalizations sequences.repeating ;
sequences.generalizations sequences.repeating ;


Line 68: Line 68:
"-(x**p)" [infix -(x**p) infix] 10 narray ;
"-(x**p)" [infix -(x**p) infix] 10 narray ;


"x value" "p value" 2array
{ "x value" "p value" } { "expression" "result" } 8 cycle append
{ "expression" "result" } 8 cycle append
-5 2 row
-5 2 row
-5 3 row
-5 3 row
5 2 row
5 2 row
5 3 row
5 3 row 5 narray simple-table.</lang>
5 narray simple-table.</lang>
{{out}}
{{out}}
<pre>
<pre>