I didn't found some thing special!
but it seems not to be a complex :-)
I the fallowing calculation to find the deviation out:

result = (50.0 * (1.0 + sin((z / 23.0 - (z / 23)) * 360.0 * pi /
180.0))).to_f.round(3)
slope = ((50.0 * (1.0 + sin(((z+1) / 23.0 - ((z+1) / 23)) * 360.0 * pi /
180.0)))-phys/1).to_f.round(3)



Regards,
Ali R. Taleghani
+1(424) 279-4548
@linkedIn <http://ir.linkedin.com/in/taleghani>


On Sat, May 3, 2014 at 12:05 PM, Kevin Mustelier <kemus / mit.edu> wrote:

> No, the second x/23 does integer division
>
>
> On Sat, May 3, 2014 at 3:29 AM, Wael El Hachimi <wael / unik.ma> wrote:
>
>> maybe there is an error:
>> sin((x / 23.0 - (x / 23)) = sin(0)
>>
>>
>> On 3 May 2014 07:24, shayne.alone / gmail.com <shayne.alone / gmail.com>wrote:
>>
>>> Hi all;
>>>
>>> I have a function with calculate a result as fallow:
>>>
>>> res = (50.0 * (1.0 + sin((x / 23.0 - (x / 23)) * 360.0 * pi / 180.0)))
>>> ## and x is the variable  which vary on each call.
>>>
>>> know I need the have the slope of the curve as each point! :-/
>>> is there any method out? or any fast idea to let me find it out?
>>> tnx
>>>
>>> Regards,
>>> Ali R. Taleghani
>>> +1(424) 279-4548
>>> @linkedIn <http://ir.linkedin.com/in/taleghani>
>>>
>>
>>
>>
>> --
>> --
>> Wael El Hachimi El Idrissi
>> Developer | Unik Experience
>> (212)0-615-174-102 | wael / unik.ma | http://www.unik.ma
>> Twitter: http://twitter.com/WaelElHachimi
>>
>
>