| 1 | initial version |
I did find a way to solve the same problem on the system (10.13) on which it was failing previously with the "illegal instruction" error:
f = lambda x: 5000.*(1.+0.045/12.)^x
find_root(f, 0, 100)
This is one of the examples from Bard's tutorial (first chapter overview) on compound interest. I wonder what the difference is in the internal workings between the two ways of defining the function.
I wish I could build Sage on my own desktop, but my hardware is probably just too darned old.
| 2 | No.2 Revision |
I did find a way to solve the same problem on the system (10.13) on which it was failing previously with the "illegal instruction" error:
f = lambda x: 5000.*(1.+0.045/12.)^x
5000.*(1.+0.045/12.)^x - 7000.
find_root(f, 0, 100)
This is one of the examples from Bard's tutorial (first chapter overview) on compound interest. I wonder what the difference is in the internal workings between the two ways of defining the function.
I wish I could build Sage on my own desktop, but my hardware is probably just too darned old.
| 3 | No.3 Revision |
I did find a way to solve the same problem on the system (10.13) on which it was failing previously with the "illegal instruction" error:
f = lambda x: 5000.*(1.+0.045/12.)^x 5000*(1+0.045/12)^x - 7000.
7000
find_root(f, 0, 100)
This is one of the examples from Bard's tutorial (first chapter overview) on compound interest. I wonder what the difference is in the internal workings between the two ways of defining the function.
I wish I could build Sage on my own desktop, but my hardware is probably just too darned old.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.