DaveS
(DaveS)
December 30, 2017, 9:11pm
1
I have been staring at this equation for a while, and I KNOW it can be simplified, but I can’t for the life of me get my brain around it today (too much Holiday I guess)
x=((xx-(lx*Z))/Z)-(dx/Z)
this equation works… but I’m sure there is a way to rearrange it to reduce the number of times Z is referenced
AlbertoD
(AlbertoD)
December 30, 2017, 9:37pm
2
Are your variables x, l, Z and d? or x, xx, lx, Z and dx?
I usually don’t see xx but x^2, so I don’t know.
Could it be?:
x=((xx-dx)/Z)-lx
Note: added the missing ) after Z, but I think it is the same as:
x=(xx-dx)/Z-lx
Hi Dave,
Here is one way that seems to work - could you double-check it?
x = (xx-(1x*z)-dx)/z
I did the proof on my white board and made assumptions - lol…
DaveS
(DaveS)
December 30, 2017, 9:46pm
5
[quote=366842:@Alberto De Poo]Are you variables x, l, Z and d? or x, xx, lx, Z and dx?
I usually don’t see xx but x^2, so I don’t know.
Could it be?:
x=((xx-dx)/Z)-lx
This does seem to work, and references each variable only once…
note …the original answer had a missing )
AlbertoD
(AlbertoD)
December 30, 2017, 10:06pm
6
[quote=366845:@Dave S]
note …the original answer had a missing )[/quote]
Or maybe an extra (
Note: I edited my previous post
NumberEmpire.com has an expression simplifier that works with Xojo expressions. I find it very useful.
https://www.numberempire.com/simplifyexpression.php