Price fraction: Difference between revisions
Content added Content deleted
(Added F# version) |
Walterpachl (talk | contribs) (→version 2: optimized) |
||
Line 2,231: | Line 2,231: | ||
* Inspired by some other solutions tested with version 1 (above) |
* Inspired by some other solutions tested with version 1 (above) |
||
* 20.04.2013 Walter Pachl |
* 20.04.2013 Walter Pachl |
||
* 03.11.2013 -"- move r. computation (once is enough) |
|||
**********************************************************************/ |
**********************************************************************/ |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Do x=0 To 1 By 0.01 |
Do x=0 To 1 By 0.01 |
||
old=adjprice(x) |
old=adjprice(x) |
||
Line 2,241: | Line 2,247: | ||
Exit |
Exit |
||
adjprice2: Procedure |
adjprice2: Procedure Expose r. |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
Parse Arg p |
|||
⚫ | |||
Return r.i</lang> |
Return r.i</lang> |
||