Re: [PHP] Draw function diagram

2007-06-06 Thread Jochem Maas
Khorosh Irani wrote: > Hi > I worked alittle with gd > It is my code for y(x)=sin(x)+cos(x): > >function Graph($rangeLow, $rangeHigh, $step) >{ >$img = ImageCreate($this->width, $this->height); >$background_color = imagecolorallocate($img, 0, 0, 0); >$white = ImageC

Re: [PHP] Draw function diagram

2007-06-05 Thread Khorosh Irani
Hi I worked alittle with gd It is my code for y(x)=sin(x)+cos(x): function Graph($rangeLow, $rangeHigh, $step) { $img = ImageCreate($this->width, $this->height); $background_color = imagecolorallocate($img, 0, 0, 0); $white = ImageColorAllocate($img, 255, 255, 255);

Re: [PHP] Draw function diagram

2007-06-05 Thread Richard Lynch
On Tue, June 5, 2007 4:36 pm, Khorosh Irani wrote: > Hello > I have a function like (y(x)=sin(x)) that i convert it to post fix and > then > execute it.means that i coud get y for each x value > now I have a simple question > I want to draw diagram of function. > how I should do this > I dont work

RE: [PHP] Draw function diagram

2007-06-05 Thread Jay Blanchard
[snip] I want to draw diagram of function. how I should do this I dont work with gd ... [/snip] You will have to work with GD unless you want to do a text plot -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Draw function diagram

2007-06-05 Thread Khorosh Irani
Hello I have a function like (y(x)=sin(x)) that i convert it to post fix and then execute it.means that i coud get y for each x value now I have a simple question I want to draw diagram of function. how I should do this I dont work with gd and also i donot now how I should done this.but i think th