|
| |
#include "franca.h"
#include "math.h"
float f(float x)
{
- return 20*sin(x)/x;
}
void mainprog()
{
- float x,y;
- Circle dot;
- dot.origin(50,240);
- dot.scale(10,10);
- dot.absize(6);
- dot.color(1,1);
- for (x=1;x<50;)
- {
- y=f(x);
- dot.place(x,y);
- dot.show();
- x=x+.05;
- }
}
|