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

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

2018-11-19 Thread HG
sage-support is one of the best list. English is not my mother language and sometimes I don't explain myself well but always people here are very kind and trying to help... It's very important this can long ! Le vendredi 14 septembre 2018 18:00:55 UTC+2, Peter Luschny a écrit : > > How can I

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] Re: Quaternions, how to speed up computation

2018-11-19 Thread Kolen Cheung
Thanks. This answer my question and I put the tip in https://groups.google.com/d/msg/sage-support/NFtI5XqjQWg/sz5WPcFMAgAJ On Monday, November 19, 2018 at 3:58:50 AM UTC-8, John Cremona wrote: > > I recommend importing anything you need from sage.all since the details of > where everything is

[sage-support] Re: Documentation on using sage as a library?

2018-11-19 Thread Kolen Cheung
Here’s the way to translate any Sage program to Python. From https://groups.google.com/d/msg/sage-support/ZtlmX3zE0b8/cdecLnbUAwAJ: The key are these: from sage.all import * def sage_parse(expr): '''exec a sage expression in globals ''' expr_str = preparse(expr) # print to

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

2018-11-19 Thread Kolen Cheung
I wonder why for me the result is >>> import_statements(QQ) # ** Warning **: several names for that object: Q, QQ from sage.rings.rational_field import Q On Monday, November 19, 2018 at 4:05:55 AM UTC-8, Dima Pasechnik wrote: On Mon, Nov 19, 2018 at 11:58 AM John Cremona > wrote: > > > >

Re: [sage-support] Sage Crash Report

2018-11-19 Thread Kolen Cheung
Thanks. This is it. I’m glad we discussed about the channel priority (if you noticed my original attachment sage-environment.yml, conda-forge is last.) I’m curious why this ABI incompatibility are allowed when satisfying the dependencies. I don’t know if the conda forge formula is written

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

2018-11-19 Thread Dima Pasechnik
On Mon, Nov 19, 2018 at 11:58 AM John Cremona wrote: > > I recommend importing anything you need from sage.all since the details of > where everything is might change in time. This works perfectly well: > > $ sage -python # so we use Sage's python not my system-wide one > Python 2.7.15

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-19 Thread Kolen Cheung
Thanks all for the comments. In the end I choose this temporary fix plot3d(sin(pi * sqrt(x**2 + y**2)) / sqrt(x**2 + y**2), (x, -5, 5), (y, -5, 5), viewer='threejs', online=True). I prefer to stick to jupyterlab hub and using conda to manage it so I didn’t try symlink those from sage in the

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

2018-11-19 Thread Kolen Cheung
Thank you both for the answers. However, I’m still stuck: Focusing on just translating the first line: R. = QQ[] In sage, >>> preparse("R. = QQ[]")"R = QQ['x']; (x,) = R._first_ngens(1)">>> >>> import_statements(QQ)# ** Warning **: several names for that object: Q, >>> QQfrom

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

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

2018-11-19 Thread slelievre
Mon 2018-11-19 09:41:03 UTC+1, Simon King: > > If I recall correctly, there is a function that for *many* (not all) > interactively created objects in Sage tells how they can be constructed, > but I don't recall the name of that function. That is sage_input, which can be used as follows:

Re: [sage-support] plot3d doesn't work in jupyterlab / jupyter notebook

2018-11-19 Thread slelievre
Mon 2018-11-19 05:50:09 UTC+1, Antonio Rojas: > > The three.js version shipped by Arch is too new and not > supported by Sage. Either use jsmol (which is still the default), > or use the online version of three.js (viewer='threejs', online=True) > (with sagemath 8.4-4, in previous versions the

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

2018-11-19 Thread Simon King
Hi On 2018-11-19, Kolen Cheung wrote: > Then I thought I can import it in Python like this: > > import sage.rings > # OK > > sage.rings.polynomial.polynomial_ring.PolynomialRing_field > # AttributeError Admittedly the following is not an ideal solution, but you can do >>> from sage import