Search:

Type: Posts; User: jamesR

1. Thread: How do i make two equations have to be equal?

by jamesR
Replies
2
Views
307

How do i make two equations have to be equal?

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,...
2. Thread: when i run the program to find the y values it always prints y2 instead

by jamesR
Replies
7
Views
287

Re: when i run the program to find the y values it always prints y2 instead

sorry, I wasn't ignoring your question, I was away from my computer for a while.
3. Thread: when i run the program to find the y values it always prints y2 instead

by jamesR
Replies
7
Views
287

Re: when i run the program to find the y values it always prints y2 instead

Thank you so much for all your help Zaphod, i have no idea how i din't see that simple error earlier.
4. Thread: when i run the program to find the y values it always prints y2 instead

by jamesR
Replies
7
Views
287

Re: when i run the program to find the y values it always prints y2 instead

ok so when i did what you suggested, d was always 3.
5. Thread: Errors with beginning jOptionPane code

by jamesR
Replies
12
Views
432

Re: Errors with beginning jOptionPane code

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.
6. Thread: when i run the program to find the y values it always prints y2 instead

by jamesR
Replies
7
Views
287

when i run the program to find the y values it always prints y2 instead

import javax.swing.*;
public class LinearFinder
{
public LinearFinder()
{
}
public static void main(String args[])
{
int x1;
int y1;
Results 1 to 6 of 6