Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.

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.