Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
dragon731012
GitHub Repository: dragon731012/-WORKING-bookmarklets-and-games
Path: blob/main/tests (don't work)/slope, slope intercept, and point slope form finder test.js
15482 views
1
javascript:var x1=prompt('what is the x coordinate of the first point?');var y1=prompt('what is the y coordinate of the first point?');var x2=prompt('what is the x coordinate of the second point?');var y2=prompt('what is the y coordinate of the second point?');var st=y2-y1;var sb=x2-x1;alert('the slope of the line is '+st+'/'+sb+'.');alert('point slope form is y-'+y1+'='+st+'/'+sb+'(x-'+x1+')'); var left=0;var right=st/sb*x1-y1;alert('the slope intercept form is y='+st+'/'+sb+'x- '+right+'.');alert("the standard form is - "+st+"/"+sb+"x+y="+right+".");alert('by dragonmaster73101');
2
3