Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Peter Luschny
You say: "hijack vs shut up, which one is more serious? Accusing someone hijacking something is a very serious accusation." I certainly didn't mean it as a 'very serious accusation' like hijacking people or planes. I used the term "hijacked" as a technical term like it is defined in the urban

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread John H Palmieri
On Monday, November 19, 2018 at 5:32:39 AM UTC-8, Kolen Cheung wrote: > > And if anyone has language issue it surely is OP. hijack vs shut up, which > one is more serious? Accusing someone hijacking something is a very serious > accusation. Since you asked what kind of community this is,

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread John Cremona
On Mon, 19 Nov 2018 at 13:45, Dima Pasechnik wrote: > > > On Monday, November 19, 2018 at 1:14:38 PM UTC, Kolen Cheung wrote: >> >> "shut up" is language issue? You dont know whats bad language. > > > I bet I can swear in more languages than you do: English, Russian, Dutch, > German, Ukrainian,

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Dima Pasechnik
On Monday, November 19, 2018 at 1:14:38 PM UTC, Kolen Cheung wrote: > > "shut up" is language issue? You dont know whats bad language. I bet I can swear in more languages than you do: English, Russian, Dutch, German, Ukrainian, Polish, Yiddish, French, Italian... And when I worked in

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And if anyone has language issue it surely is OP. hijack vs shut up, which one is more serious? Accusing someone hijacking something is a very serious accusation. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
*can't -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
If one don't have an authority to dictate, why can't he told to be shut up? Instead ask him to continue to dictate? What kind of community is this? -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Snd if someone say something trying to dictate what can or cannot be asked without backing up with an authority to dictate (such as a guideline), he should really shut up literally and I wonder why this is a 'language issue". Did you guys not literally means shut up when you say shut up? Do you

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And do point out where's the guideline saying I can ask follow up questions like this. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Do ban me if you think "shut up" is language issue. It must be a joke. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
How's your behavior so good? you are a selfish guy that only want to consumea others time and ask question and cannot stand people asking following up question on the same piece of code. You should really have shutted up and may be mark it as spam but not speak up. -- You received this

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
"shut up" is language issue? You dont know whats bad language. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Dima Pasechnik
On Mon, Nov 19, 2018 at 12:53 PM Kolen Cheung wrote: > > And if anyone is dictating this, that one is surely not you, even if you're > the OP. Shut up. Language!!! You might get banned for this... > > On Monday, November 19, 2018 at 4:43:44 AM UTC-8, Peter Luschny wrote: >> >> > Hi, I’m trying

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Peter Luschny
Kolen Cheung: > > And if anyone is dictating this, that one is surely not you, even if > you're the OP. Shut up. > You reconfirm the obvious, namely that you cannot behave. > On Monday, November 19, 2018 at 4:43:44 AM UTC-8, Peter Luschny wrote: >> >> > Hi, I’m trying to translate this Sage

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
And if anyone is dictating this, that one is surely not you, even if you're the OP. Shut up. On Monday, November 19, 2018 at 4:43:44 AM UTC-8, Peter Luschny wrote: > > > Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. > using sage as a Python library.) But I got stuck even

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Because I use exactly the code shown here as an example. And I did open a thread posting a direct question on how to use sage as a library but the question is too general. So I figure I should use an example and so happen I saw this thread with an interesting example. So this is not hijack.

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Peter Luschny
> Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. using sage as a Python library.) But I got stuck even on the first command. Why do you hijack this thread with a completely different topic? I'm sure that your question and the answers of the experts are of interest to many,

Re: [sage-support] Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
But if you're reading carefully this isn't what I'm asking. On Monday, November 19, 2018 at 12:30:22 AM UTC-8, Dima Pasechnik wrote: > > Sage uses a preparer to translate things like R.=QQ[] into usual Python > R=PolynomialRing(...). > > In the library code the preparer is not used. > > > On

Re: [sage-support] Quaternions, how to speed up computation

2018-11-18 Thread Kolen Cheung
Hi, I’m trying to translate this Sage syntax to Python syntax (i.e. using sage as a Python library.) But I got stuck even on the first command. In Sage, >>> R. = QQ[]>>> type(R) Then I thought I can import it in Python like this: import sage.rings # OK

Re: [sage-support] Quaternions, how to speed up computation

2018-09-14 Thread Peter Luschny
merci beaucoup! Peter -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [sage-support] Quaternions, how to speed up computation

2018-09-14 Thread William Stein
On Fri, Sep 14, 2018 at 9:00 AM, Peter Luschny wrote: > How can I speed up this computation? > > H. = QuaternionAlgebra(SR, -1, -1) Do NOT use SR. Instead use QQ(x). Then it is 100x faster than Mathematica... R. = QQ[] K = R.fraction_field() H. = QuaternionAlgebra(K, -1, -1) def Q(a, b,

[sage-support] Quaternions, how to speed up computation

2018-09-14 Thread Peter Luschny
How can I speed up this computation? H. = QuaternionAlgebra(SR, -1, -1) def Q(a, b, c, d): return H(a + b*i + c*j + d*k) def P(n): return Q(x+1,1,1,1)*P(n-1) if n > 0 else Q(1,0,0,0) def p(n): return P(n)[0].list() for n in (0..20): print [n], p(n) [0] [1] [1] [1, 1]