>I'm confused what you mean when you say "500 values. What I ment was since it is 100 * 100 = 10 000 possible values in a 2 d array. Since it is a triangle, I only need to put in half thoes values so I guess I ment 5000 not 500.
>Finally, you could try parameterizing all of the lines by hand and doing >code like: > >if percent_clay > 60: > return 'HC' >elif percent_clay > 40 and percent_sand < 45: > if percent_clay - 40 - ((40 - 60) / (20 - 0)) * (percent_sand - 20) < 0: > return 'SiC' > else: > return 'C' >... I have thought about doing it with all the if statements as you sugguested but as you also sugguested I was hopeing there would be a better way. I was thinking maybe define them as shapes or somthing like that and then see which shape each pair of values fits into. Thanks for the thoughts Andrew, Jeremy No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.8.16/849 - Release Date: 6/14/2007 12:44 PM -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
