Vocabularyui.
gadgets.
charts.
lines.
privateWord descriptionGiven the
slope of a line and a random
point belonging to that line, calculate the
x coordinate corresponding to the given
y.
InputsOutputsExamplesUSING: ui.gadgets.charts.lines.private prettyprint ;
1 5 { 1 1 } calc-x .
5
USING: ui.gadgets.charts.lines.private prettyprint ;
0.5 10 { 0 0 } calc-x .
20.0
See alsocalc-line-slope,
y-at,
calc-yDefinition