Thread: Factoring NPC
View Single Post
  #7  
Old 11-29-2006, 10:08 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
It seems that it's putting negatives in the next highest degree if you call it with a '/npc' command, for some reason.. It wasn't doing this when I first made it, weird.

You take the negative and positive of each factor of the lowest degree (reason abs is used in the script) and divide them by the negative and positive of each factor of the highest degree, then do synthetic division of the top numbers by each of the bottom numbers. If the end result is 0, you have a factor of the equation.
Reply With Quote