Difference between revisions of "Template:Cts-solve"
From Tales of Maj'Eyal
								
												
				|  (add the docmentation first) | 
| (No difference) | 
Revision as of 13:59, 29 February 2016
Use for solving for Template:cts for given values.
{{cts-solve
|high=  
|low=
|t= 
|x_high= (default 5, optional)
|x_low= (default 1, optional)
|power= (default 0.5, optional)
|shift= (default 0, optional)
|add= (default 0, optional)
}}
Input: power(=0), add(=0), shift(=0), x_low (=1), x_high(=5), low, high, (raw or log), t 
m = (high - low) / ( (x_high+shift)^power - (x_low+shift)^power ) b = low - m*(x_low+shift)^power
Output = m * (t+shift)^power + b + add
((high - low) / ( (x_high+shift)^power - (x_low+shift)^power ) ) * ((t+shift)^power) + (low - ( (high - low) / ( (x_high+shift)^power - (x_low+shift)^power ) ) *(x_low+shift)^power) + add


