go ahead... be a heretic | |
PerlMonks |
Re^7: Make sin wave with GDby sn1987a (Deacon) |
on Jul 01, 2015 at 18:56 UTC ( [id://1132880]=note: print w/replies, xml ) | Need Help?? |
I'm not sure I understand what you are asking, but I will take a shot. If f(x) is a function whose range goes from $f_min to $f_max over the domain of interest, and the graph is of size $graph_size, then plot
In the case of your sine, you would have $f_min = -1; $f_max = 1; $graph_size = 400. This simplifies the the expression in my previous response.
In Section
Seekers of Perl Wisdom
|
|