View Single Post
  #24  
Old 06-01-2001, 08:57 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by kyle0654
NPC Code:

3y + 7x < 18 // start with this
3y < 18 - 7x // move x to other side by minusing
// 7x from each side
y < (18 - 7x)/3 // divide both sides by 3
y < -(7/3)x + 6 // simplify (I think you can do distributing,
// been a while since Algebra though


I assume you're solving for y

notice that it's very much like trying to get to y = mx + b. Just remember if you divide by a negative you need to flip the inequality (> or <) sign.

61900933 if you need more help
The only trouble is if you start dividing or multiplying because then... ack, I'll spare you all the pain. Just wait till you get to the heavy calculus...
Reply With Quote