satwindercse
New member
- Joined
- Jul 26, 2010
- Messages
- 2
I would like to make equation with three (x,y,z) variables to calculate the third variable from two. There is a direct relationship of third variables with other two. For example
Z= aX + bY. I want z should lie between 0 and 1. x and y both are liying between 0 and 1 both inclusive. One method is Pythagoras theorem or distance formula. which is normalised as follow:
z= 1-sqrt((1-x)^2 + (1-y)^2)/2)
some one also suggest me with z=x+y-xy .
but I also want that
Z=0 when X=0 and Y=0
Z=1 when X=1 and Y=1
Can any one help me to form the equation with any other formula? I am in dark kindly help me.
Z= aX + bY. I want z should lie between 0 and 1. x and y both are liying between 0 and 1 both inclusive. One method is Pythagoras theorem or distance formula. which is normalised as follow:
z= 1-sqrt((1-x)^2 + (1-y)^2)/2)
some one also suggest me with z=x+y-xy .
but I also want that
Z=0 when X=0 and Y=0
Z=1 when X=1 and Y=1
Can any one help me to form the equation with any other formula? I am in dark kindly help me.