Tropical algebra overloading: Difference between revisions
Content added Content deleted
m (R example) |
m (→{{header|R}}: use cat) |
||
Line 108: | Line 108: | ||
} |
} |
||
cat("2 %*% -2 ==", 2 %*% -2, "\n") |
|||
cat("-0.001 %+% -Inf ==", 0.001 %+% -Inf, "\n") |
|||
cat("0 %*% -Inf ==", 0 %*% -Inf, "\n") |
|||
cat("1.5 %+% -1 ==", 1.5 %+% -1, "\n") |
|||
cat("-0.5 %*% 0 ==", -0.5 %*% 0, "\n") |
|||
cat("5^7 ==", 5 %^% 7, "\n") |
|||
cat("5 %*% (8 %+% 7)) ==", 5 %*% (8 %+% 7), "\n") |
|||
cat("5 %*% 8 %+% 5 %*% 7 ==", 5 %*% 8 + 5 %*% 7, "\n") |
|||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |