Right now i am writing a program that will find the intersection point of two lines. My general equations are y=m1 * x + b1 and y = m2 * x +b2. I want to make m1 * x + b1 HAVE to equal m2 * x + b2,...
Type: Posts; User: jamesR
Right now i am writing a program that will find the intersection point of two lines. My general equations are y=m1 * x + b1 and y = m2 * x +b2. I want to make m1 * x + b1 HAVE to equal m2 * x + b2,...
sorry, I wasn't ignoring your question, I was away from my computer for a while.
Thank you so much for all your help Zaphod, i have no idea how i din't see that simple error earlier.
ok so when i did what you suggested, d was always 3.
I would suggest putting the area outputs in the initial if statements with asking fr the base that might make it easier to look at.
import javax.swing.*;
public class LinearFinder
{
public LinearFinder()
{
}
public static void main(String args[])
{
int x1;
int y1;