• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Math/Programming Help

Drakkon

Diamond Member
So say given an initial equation for a line, just a regular thing y=mx + b
and start graphing that line and all the sudden there is a change in the slope
whats the best way to go about finding the new "b"? This is being drawn dynamically over time and just can't remeber how to generate b's over time when new equations thrown in...

Example
have the equation for initial dotted line but no equation (just the slope) for the second solid line going down.
 
Try point-slope formula? Not exactly sure what you're trying to do here but:

Y-y1=m(X-x1) => Y=mX-mx1+y1. Therefore, B = -mx1+y1. I think that should work.

(x1,y1) must a point on the new line you're creating. The end point of the previous line will work as long as you plug your new slope into the equation.
 
the first 3 times i tried that it seemed right but it didnt work. Of course i tried it one more time since u mentioned it and of course it works...so sicka flash...
 
Back
Top