Puoi aprire il codice e modificare la funzione: vedi l'Help
You can open the Code and modify the function: see the Help
HELP

Semplici trasformazioni geometriche (trasformazioni di scala + traslazioni). Un esempio
Simple geometric transformations (scales + translations). An example

// ---- f blue, g green, h red, k orange ----

// f in (a,b)*(c,d)  --> ff in (aa,bb)*(cc,dd)
// ff(x) = cc + ( f( (x-aa)*(b-a)/(bb-aa)+a)-c ) * (dd-cc)/(d-c)

a=-1; b=2; c=-1.5; d=3
function f(x) { if(x>=-1 && x<=2) {y = x*x*x/2-1} else {y=1/0}; return y }
function g(x) { aa=0; bb=8; cc=5; dd=-5; y = cc + ( f( (x-aa)*(b-a)/(bb-aa)+a)-c ) * (dd-cc)/(d-c); return y }
function h(x) { aa=1; bb=3; cc=-5; dd=3; y = cc + ( f( (x-aa)*(b-a)/(bb-aa)+a)-c ) * (dd-cc)/(d-c); return y }
function k(x) { aa=5; bb=2; cc=-1.5; dd=3; y = cc + ( f( (x-aa)*(b-a)/(bb-aa)+a)-c ) * (dd-cc)/(d-c); return y }

aX = -2; bX = 9; aY = -6; bY = 6
Dx = 1; Dy = 1