Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
petrus250
petrus250's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
Calculating y-intercept of a straight line
[3 Replies]
18-Sep-2012 10:12 AM
Forum:
Programming Questions
Hi,
I need to calculate the y intercept of a straight line given 2 sets of coordinates and the gradient, although this obviously has to be done automatically... here is my current code:
void getEquation(float gradient) {
float intercept = ;
String output = gradient + "x + " + intercept;
println(output);
}
«Prev
Next »
Moderate user : petrus250
Forum