Ask Your Question

Tlk's profile - activity

2021-01-20 16:31:31 +0200 received badge  Famous Question (source)
2019-08-24 20:20:28 +0200 received badge  Taxonomist
2016-11-06 11:20:03 +0200 received badge  Notable Question (source)
2013-10-25 15:32:23 +0200 received badge  Famous Question (source)
2013-08-09 19:58:57 +0200 received badge  Popular Question (source)
2013-02-06 17:10:57 +0200 received badge  Notable Question (source)
2012-05-01 05:55:37 +0200 received badge  Popular Question (source)
2011-01-07 04:21:30 +0200 commented answer How to set mutable an inmutable sequence.

I've been trying but it's really hard to find something about that on the doc :S

2011-01-06 10:47:11 +0200 commented answer How to set mutable an inmutable sequence.

Thanks for the explanation. There is nothing about "_is_immutable" on the doc?

2011-01-05 17:03:50 +0200 answered a question How to set mutable an inmutable sequence.

I think i have found the solution:

v._set_ inmutable=FALSE

Anything can link me something about that on the Documentation?

2011-01-04 02:19:36 +0200 commented answer How to set mutable an inmutable sequence.

Okey, thank you for the answer. Sorry about the Sequence staff, I guess that's because of my english vocabulary

2011-01-03 15:20:57 +0200 answered a question How to set mutable an inmutable sequence.

That's not a sequence.

seq = (1,2,3,4) <-- tuple sage: seq2 = list(seq) <-- list

I mean how to do mutable an inmutable sequence(http://www.sagemath.org/doc/reference...) like, for example: v = Sequence(range(5), universe=ZZ)

2011-01-03 08:22:44 +0200 commented answer How to reinitialize a generator.

It was my math teacher the one who told me that. I have to figure out how to do that, cause that's +2 points for my SAGE exam :-P

2011-01-02 23:12:45 +0200 asked a question How to set mutable an inmutable sequence.

I think the title is quite descriptive.

I would like to know, how can you set mutable an inmutable sequence. Is that even possible?

I would be very grateful if you can link me the file of the sage documentation where I can find that info.

Thanks.

2011-01-02 23:08:56 +0200 answered a question How to reinitialize a generator.

Thanks both of you for the answers.

I have been told there must be a way to reset a generator without re-declaring it, and i have to find it :S I have been for long time on the doc searching, but I either found the way to reset it, or that there is no way to do that.

Could you link me from the documentation where it is said that you cannot reset a generator? (or how to, if it is actually possible)

2011-01-01 21:42:59 +0200 received badge  Student (source)
2011-01-01 19:54:52 +0200 received badge  Editor (source)
2011-01-01 19:06:44 +0200 asked a question How to reinitialize a generator.

Hi,

I would like to know how to reinitialize/reset a generator. I mean, if I for example have:

sage: generator = (n for n in range(1,10000) if (is_prime(n) & is_prime(n+2)))

And then i run generator.next() for example twice. How can i reinitialize/rest this generator so that when i run generator.next() again i get the first element?

If it is possible, i would thank you a lot if you can link the documentation file with the info, because i have searching for it so long and I didn't find anything.

Thanks ;)

P.D. Maybe my english is not good enought and i misspelled some words. Sorry about that.