Formula simplification

krys at polarlights.net krys at polarlights.net
Mon May 2 12:56:01 CEST 2011


Hi,

I'm just a beginner but I'm searching a way to "simplify" and optimize the following formula with SciLab.

dv10 = v1-v0
dv20 = v2-v0
dv20 = v2-v1
f = dv20 * (b0 * (n1 - n0) - b2 * (n2 - n1)) + dv21 * (b1 * (n1 - n0) + b2 * (n2 - n0)) + dv10 * (b0 * (n2 - n0) - b1 * (n2 - n1))

I'm searching for a "compact" form... can you tell if it is possible to do ?

Thanks




More information about the users mailing list