Any languages able to program (0,1] mathematical interval
|
04-28-2017, 01:56 PM
(This post was last modified: 04-28-2017 08:18 PM by StephenG1CMZ.)
Post: #1
|
|||
|
|||
Any languages able to program (0,1] mathematical interval
Mathematicians often use brackets to indicate whether or not a limit value is included or excluded, e.g. (0,9] might be programmed as 0<=x<9... I don't use that syntax often so wouldn't be sure which bracket is which without checking. Update: It seems I have the brackets the wrong way round.
Are there any programming languages that recognise that syntax directly, thereby avoiding the need to check and code it differently? I am mainly interested in mainstream languages (Basic, C, Lua, Python ... And of course HP PPL) rather than Mathematica and the like. Alternatively, is there a different way of writing such an interval concisely, yet making which is included/excluded clearer. Stephen Lewkowicz (G1CMZ) https://my.numworks.com/python/steveg1cmz |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)