Ask Your Question

gerry_chuck's profile - activity

2021-10-05 23:36:48 +0200 received badge  Student (source)
2021-10-05 23:36:40 +0200 received badge  Notable Question (source)
2021-10-05 23:36:40 +0200 received badge  Popular Question (source)
2016-02-29 22:21:39 +0200 received badge  Self-Learner (source)
2016-02-29 22:21:39 +0200 received badge  Teacher (source)
2016-02-27 02:16:53 +0200 answered a question Integer not iterable

Yep, silly me, worked it out. Few lines below on the same page it says to enter the following command:

from operator import mul

Hope someone who uses the same approch in Learning sage finds this useful.

Gerry

2016-02-27 02:09:54 +0200 asked a question Integer not iterable

Not sure if this was asked before. I've been going through the Sage and Python tutorials for the past 3 weeks as I worked out that I'll eventually have to learn at least some Python so to get what I need from Sage. So far so good,

But this one escapes me. The Sage tutorial refers to this example in The Python library:

map(mul, [0, 1, 2, 3], [10, 20, 30, 40]) which is supposed to yield [0, 20, 60, 120]

However, I keep getting ... ... TypeError: 'sage.rings.integer.Integer' object is not iterable

What's causing this?

Hope someone can help Gerry

2016-02-11 21:54:06 +0200 asked a question Approximate values of eigenvalues

Does anyone know what commands or a procedure to use to find approximate values of of eigenvalues of a random matrix in SAGE? Of any precision, but to make things simpler let's say 4.

Hope someone can help.

Thanks

Gerry