pyro.699
03-23-2006, 07:06 PM
Ok,
for some reason, my math teacher needed a script made that can handle trigonomerty functions (sin, cos, and tan). Now, ive decided to extend my php knowage and try it out... i have all of the math done, but now, i need to create a image making script to fit the triangle, and, i know absoultly nothing about the 'image' function, and thought someone could help me out:
1) ill be using $_GET['opposite'], $_GET['adjacent'], and $_GET['hypotenuse']
2) i would like it to have the actchual number identifications on the side (look at atachment)
3) it should resize to 250x250 px, with a 10px border
background: black (0, 0, 0)
triangle: white(255, 255, 255)
4) i will be calling the image threw a php file (duh, lol ^^;) so it shoudl be able to handle aquard numbers
Side a: 483
Side b: 295
Side c: 565.96289631
(angle) A: 58.5848315151
Sine: 0.853412835274
Cosine: 0.521235582621
Tangent: 1.63728813559
5) i would like it to look something like the example
I really need this! thanks
~Cody Woolaver
(If u cant read the hypotenuse it says 'Length of C')
for some reason, my math teacher needed a script made that can handle trigonomerty functions (sin, cos, and tan). Now, ive decided to extend my php knowage and try it out... i have all of the math done, but now, i need to create a image making script to fit the triangle, and, i know absoultly nothing about the 'image' function, and thought someone could help me out:
1) ill be using $_GET['opposite'], $_GET['adjacent'], and $_GET['hypotenuse']
2) i would like it to have the actchual number identifications on the side (look at atachment)
3) it should resize to 250x250 px, with a 10px border
background: black (0, 0, 0)
triangle: white(255, 255, 255)
4) i will be calling the image threw a php file (duh, lol ^^;) so it shoudl be able to handle aquard numbers
Side a: 483
Side b: 295
Side c: 565.96289631
(angle) A: 58.5848315151
Sine: 0.853412835274
Cosine: 0.521235582621
Tangent: 1.63728813559
5) i would like it to look something like the example
I really need this! thanks
~Cody Woolaver
(If u cant read the hypotenuse it says 'Length of C')