Find the intersection of two lines: Difference between revisions
m
→{{header|Ruby}}: no more + -20
(→Using a geometric algebra library: narrowing is actually not needed here) |
m (→{{header|Ruby}}: no more + -20) |
||
Line 2,270:
def to_s
"y = #{@a}x #{@b.positive? ? '+' : '-'} #{@b.abs}"
end
Line 2,281:
</syntaxhighlight>
{{out}}
<pre>Line y = 5.0x
=={{header|Rust}}==
|