Editing Talk:1270: Functional
Please sign your posts with ~~~~ |
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 56: | Line 56: | ||
: I'm not sure if sine(x) is any good example at all. It is a function, but as I tried to explain below, that does not make it relate to functional programming. And I would say that sine(pi/2)=1 and sine(90) is approximately 0.894. --[[User:Chtz|Chtz]] ([[User talk:Chtz|talk]]) 20:23, 29 September 2013 (UTC) | : I'm not sure if sine(x) is any good example at all. It is a function, but as I tried to explain below, that does not make it relate to functional programming. And I would say that sine(pi/2)=1 and sine(90) is approximately 0.894. --[[User:Chtz|Chtz]] ([[User talk:Chtz|talk]]) 20:23, 29 September 2013 (UTC) | ||
::A standard calculator works in degrees and so sine(90Β°) is exactly 1, while when using {{w|Radian|radians}} sine(pi/2)=1 is correct. But this doesn't matter, it always describes how to invoke a function and get the result.--[[User:Dgbrt|Dgbrt]] ([[User talk:Dgbrt|talk]]) 10:38, 30 September 2013 (UTC) | ::A standard calculator works in degrees and so sine(90Β°) is exactly 1, while when using {{w|Radian|radians}} sine(pi/2)=1 is correct. But this doesn't matter, it always describes how to invoke a function and get the result.--[[User:Dgbrt|Dgbrt]] ([[User talk:Dgbrt|talk]]) 10:38, 30 September 2013 (UTC) | ||
β | + | ||
;There is a difference between functional programming and using functions in imperative programming | ;There is a difference between functional programming and using functions in imperative programming |