Talk:Topic variable: Difference between revisions

From Rosetta Code
Content added Content deleted
No edit summary
No edit summary
Line 4: Line 4:


: Related issues are "what is a topic variable?" and "what is a shortcut?" --[[User:Rdm|Rdm]] 14:11, 27 January 2013 (UTC)
: Related issues are "what is a topic variable?" and "what is a shortcut?" --[[User:Rdm|Rdm]] 14:11, 27 January 2013 (UTC)

:If a language does not have standard trigonometric functions, custom versions can be provided, for instance with a Taylor series approximation or something. Same for rounding. For comparison purposes, I didn't want to be too liberal on how to show how topic variables can be used. Thus the three standard functions. It's a method that has been chosen for other tasks on RC, irrc.--[[User:Grondilu|Grondilu]] 15:37, 27 January 2013 (UTC)

Revision as of 15:37, 27 January 2013

Computing the cosine and rounding may be a relatively difficult task in some languages (esp. if the language does not have built in floating point handling), as opposed to setting the topic variable to a simple constant. If the task is just to demonstrate the use of the topic variable, then maybe simplify the task and remove the trigonometry and rounding requirements. I suggest leaving the task description simply as "Demonstrate the utilization and behaviour of the topic variable within the language",

Markhobley 13:01, 27 January 2013 (UTC)

Related issues are "what is a topic variable?" and "what is a shortcut?" --Rdm 14:11, 27 January 2013 (UTC)
If a language does not have standard trigonometric functions, custom versions can be provided, for instance with a Taylor series approximation or something. Same for rounding. For comparison purposes, I didn't want to be too liberal on how to show how topic variables can be used. Thus the three standard functions. It's a method that has been chosen for other tasks on RC, irrc.--Grondilu 15:37, 27 January 2013 (UTC)