Hi there!
I'm creating a LUA script for dimming the LEDs in my aquarium. But I'm stuck on the math unfortunately... Would You like to help me a bit?
I've got the following formula
\(\displaystyle \mbox{Perceived Light (%): }\, 100\, \times\, \sqrt{\strut \dfrac{\mbox{Measured Light (%)}}{100}\,}\)
For a given value of Perceived light, I want to calculate the Measured Light.
For example: perceived light has the value of 25, how will the equation look like to calculate Measured Light?
I hope my question is understandable. I will need to programmatically translate values of perceived light in the range from 1 to 100 into measured light. First step would be to have a usable equation, then I will try to implement it in a LUA script.
Thanks!!!
I'm creating a LUA script for dimming the LEDs in my aquarium. But I'm stuck on the math unfortunately... Would You like to help me a bit?
I've got the following formula
\(\displaystyle \mbox{Perceived Light (%): }\, 100\, \times\, \sqrt{\strut \dfrac{\mbox{Measured Light (%)}}{100}\,}\)
For a given value of Perceived light, I want to calculate the Measured Light.
For example: perceived light has the value of 25, how will the equation look like to calculate Measured Light?
I hope my question is understandable. I will need to programmatically translate values of perceived light in the range from 1 to 100 into measured light. First step would be to have a usable equation, then I will try to implement it in a LUA script.
Thanks!!!
Attachments
Last edited by a moderator: