Anonymous user
Pascal's triangle/Puzzle: Difference between revisions
no edit summary
m (→{{header|REXX}}: added/changed comments and whitespace, re-did the picture of the puzzle.) |
No edit summary |
||
Line 1,451:
</pre>
=={{header|Maple}}==
<lang Maple>
sys := {22 + x + y = 40, 78 + 5*y + z = 151, x + z = y}:
solve(sys, {x,y,z});
</lang>
{{out}}<pre>
{x = 5, y = 13, z = 8}
</pre>
=={{header|Mathematica}}==
We assign a variable to each block starting on top with a, then on the second row b,c et cetera. k,m, and o are replaced by X, Y, and Z. We can write the following equations:
|