Re: [sage-support] Current advice for generic SageMath install advice

2023-04-05 Thread Hongyi Zhao
On Thursday, March 30, 2023 at 4:46:04 AM UTC+8 Matthias Koeppe wrote: On Wednesday, March 29, 2023 at 1:33:07 PM UTC-7 Nils Bruin wrote: On Wednesday, 29 March 2023 at 13:06:25 UTC-7 Matthias Koeppe wrote: On Tuesday, March 28, 2023 at 10:18:23 PM UTC-7 Nils Bruin wrote: [...] leads me to

[sage-support] A minor error in "Changing which GAP is used, and how".

2023-04-05 Thread Hongyi Zhao
Here [1] has a little error in writing, as shown below: werner@X10DAi:~$ SAGE_GAP_COMMAND = "/usr/local/bin/gap -s 4G" sage SAGE_GAP_COMMAND: command not found But the correct version should look like this, aka, without white spaces around the `=': werner@X10DAi:~$

Re: [sage-support] gap.console() calling problem.

2023-04-05 Thread Hongyi Zhao
On Wednesday, April 5, 2023 at 7:46:54 PM UTC+8 Dima Pasechnik wrote: libgap.* and gap.* are different interfaces. We are in transition away from gap.* interface, please don't use it in new code. And don't mix them up in your code. Thank you for pointing this out. Best, Zhao -- You

Re: [sage-support] gap.console() calling problem.

2023-04-05 Thread Hongyi Zhao
On Wednesday, April 5, 2023 at 5:49:20 PM UTC+8 Hongyi Zhao wrote: On Wednesday, April 5, 2023 at 5:45:13 PM UTC+8 Hongyi Zhao wrote: On Wednesday, April 5, 2023 at 5:15:05 PM UTC+8 Jan Groenewald wrote: Hi On Wed, 5 Apr 2023 at 10:03, Hongyi Zhao wrote: But other alternatives didn't work

Re: [sage-support] gap.console() calling problem.

2023-04-05 Thread Hongyi Zhao
On Wednesday, April 5, 2023 at 5:45:13 PM UTC+8 Hongyi Zhao wrote: On Wednesday, April 5, 2023 at 5:15:05 PM UTC+8 Jan Groenewald wrote: Hi On Wed, 5 Apr 2023 at 10:03, Hongyi Zhao wrote: But other alternatives didn't work either: sage: import sage.interfaces.gap as ggap sage

Re: [sage-support] gap.console() calling problem.

2023-04-05 Thread Hongyi Zhao
On Wednesday, April 5, 2023 at 5:15:05 PM UTC+8 Jan Groenewald wrote: Hi On Wed, 5 Apr 2023 at 10:03, Hongyi Zhao wrote: But other alternatives didn't work either: sage: import sage.interfaces.gap as ggap sage: ggap.gap_cmd="~/.local/bin/gap" sage: gg

Re: [sage-support] gap.console() calling problem.

2023-04-05 Thread Hongyi Zhao
On Wednesday, April 5, 2023 at 3:55:47 PM UTC+8 Dima Pasechnik wrote: On Wed, 5 Apr 2023, 01:02 Hongyi Zhao, wrote: See my following testing: Method 1: This works: sage: import sage.interfaces.gap sage: sage.interfaces.gap.gap_cmd = "~/.local/bin/gap" sage: gap.console()

[sage-support] gap.console() calling problem.

2023-04-04 Thread Hongyi Zhao
See my following testing: Method 1: This works: sage: import sage.interfaces.gap sage: sage.interfaces.gap.gap_cmd = "~/.local/bin/gap" sage: gap.console() Method 2: This fails: sage: import sage.interfaces.gap as gap sage: gap.gap_cmd="~/.local/bin/gap" sage: gap.console()

Re: [sage-support] How to use Gap interface for permutation groups?

2023-04-04 Thread Hongyi Zhao
e unstable. ┃ ┗┛ sage: g = libgap.SymmetricGroup(4) sage: OnSets = libgap.OnSets sage: g.Stabilizer([1,2], OnSets) Group([ (3,4), (1,2) ]) On Tuesday, April 4, 2023 at 10:08:02 AM UTC-7 Hongyi Zhao wrote: On Friday, March 31, 2023 at 1:38:47 AM UTC+8 Dima Pasechnik wrote:

Re: [sage-support] How to use Gap interface for permutation groups?

2023-04-04 Thread Hongyi Zhao
On Friday, March 31, 2023 at 1:38:47 AM UTC+8 Dima Pasechnik wrote: On Thu, 30 Mar 2023, 18:25 'Peter Mueller' via sage-support, < sage-s...@googlegroups.com> wrote: When working with finite permutation groups, it seems to me that one has the choice to either use the groups as sage objects

[sage-support] Debug GAP language in Sage.

2023-02-01 Thread Hongyi Zhao
Hi here, Can I debug GAP language in Sage? Regards, Zhao -- 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 view

[sage-support] Create space group using the AffineGroup provided in sagemath.

2022-08-06 Thread Hongyi Zhao
I noticed the AffineGroup command provived in sagemath, but I want to know if I can use this function to create a space group [2], for example, using the generators given here [3]. Any hints will be appreciated. [1]

Re: [sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Hongyi Zhao
On Saturday, July 2, 2022 at 2:49:25 AM UTC+8 raymond@gmail.com wrote: > You (hongy) might be interested in > Matrix Groups (Universitext) 2nd Edition > by M. L. Curtis (Author) > Which is a pretty good introduction; although the price is a little high. > Thank you for letting know this

[sage-support] Re: Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Hongyi Zhao
On Saturday, July 2, 2022 at 1:38:59 AM UTC+8 John H Palmieri wrote: > Is this the sort of thing you're looking for? > > def matrix_rep(z): > """ > INPUT: complex number z = a + bi > OUTPUT: the matrix >[a -b] >[b a] > """ > a = z.real_part() > b =

[sage-support] Find the matrix representations corresponding to complex numbers and quaternions.

2022-07-01 Thread Hongyi Zhao
How can I find the matrix representations corresponding to complex numbers and quaternions with the help of SageMath , i.e., the ring isomorphism from the field of complex numbers and quaternions to the rings of

[sage-support] Create the groups which are given as the vector space (or module) over integers.

2022-06-10 Thread Hongyi Zhao
For crystallographic space groups, say, the diamond structure, we have the following information, as described here [1]. The primitive cell lattice vectors can be defined as follows: a1 = (0, 1/2, 1/2), a2 = (1/2, 0, 1/2), a3 = (1/2, 1/2, 0) The translation vectors, can be selected as

[sage-support] Re: Create the Lorentz group in Sagemath.

2022-06-01 Thread Hongyi Zhao
On Wednesday, June 1, 2022 at 2:34:26 PM UTC+8 Nils Bruin wrote: > On Wednesday, 1 June 2022 at 05:41:33 UTC+2 hongy...@gmail.com wrote: > >> On Wednesday, June 1, 2022 at 1:55:45 AM UTC+8 Nils Bruin wrote: >> >>> The "GO" mentioned here should correspond to the O(3;1) (or perhaps >>> O(1;3) )

[sage-support] Re: Create the Lorentz group in Sagemath.

2022-05-31 Thread Hongyi Zhao
On Wednesday, June 1, 2022 at 1:55:45 AM UTC+8 Nils Bruin wrote: > The "GO" mentioned here should correspond to the O(3;1) (or perhaps O(1;3) > ) mentioned in the wikipedia article. > Do you mean that these two ways of writing are a matter of convention? > > The problem with the "real

[sage-support] Re: Create the Lorentz group in Sagemath.

2022-05-31 Thread Hongyi Zhao
On Sunday, May 29, 2022 at 6:27:18 PM UTC+8 Nils Bruin wrote: > It depends a little on what coefficients you want. If you're happy with > rational numbers then this should do the trick: > As far as the Lorentz group is concerned, I think it should be constructed on real numbers filed in

[sage-support] Create the Lorentz group in Sagemath.

2022-05-26 Thread Hongyi Zhao
How can I create the Lorentz group, as described here [1], in Sage math? [1] https://en.wikipedia.org/wiki/Lorentz_group#Basic_properties Regards, HZ -- 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] Creat fp group using addition relation.

2022-05-25 Thread Hongyi Zhao
On Wednesday, May 25, 2022 at 6:22:48 PM UTC+8 wdjo...@gmail.com wrote: > On Wed, May 25, 2022 at 6:08 AM Hongyi Zhao wrote: > > > > As commented here [1], the following two methods can be used to define > an Cyclic Group: > > > > ``` > > Ge

[sage-support] Creat fp group using addition relation.

2022-05-25 Thread Hongyi Zhao
As commented here [1], the following two methods can be used to define an Cyclic Group: ``` Generators If the group operation is multiplication then: If the group operation is addition then: ``` For the first case, the corresponding code snippet in GAP is as follows: ``` gap>

Re: [sage-support] Re: Symbolic Fourier transform in sagemath.

2021-06-04 Thread Hongyi Zhao
On Friday, June 4, 2021 at 10:03:47 PM UTC+8 Emmanuel Charpentier wrote: > Le samedi 29 mai 2021 à 01:16:21 UTC+2, hongy...@gmail.com a écrit : > >> On Saturday, May 29, 2021 at 1:01:38 AM UTC+8 dim...@gmail.com wrote: >> >>> On Fri, May 28, 2021 at

Re: [sage-support] Re: Symbolic Fourier transform in sagemath.

2021-05-28 Thread Hongyi Zhao
On Saturday, May 29, 2021 at 1:01:38 AM UTC+8 dim...@gmail.com wrote: > On Fri, May 28, 2021 at 5:38 PM Hongyi Zhao wrote: > > > > > > > > On Friday, May 28, 2021 at 8:19:07 PM UTC+8 Emmanuel Charpentier wrote: > >> > >> This can be c

[sage-support] Re: Symbolic Fourier transform in sagemath.

2021-05-28 Thread Hongyi Zhao
On Friday, May 28, 2021 at 8:19:07 PM UTC+8 Emmanuel Charpentier wrote: > This can be computed “by hand” using (one of) the textbook definition(s) : > > sage: var("omega, s") > (omega, s) > sage: integrate(sin(x^2)*e^(-I*s*x), x, -oo, oo) > 1/2*sqrt(2)*sqrt(pi)*cos(1/4*s^2) -

[sage-support] Symbolic Fourier transform in sagemath.

2021-05-22 Thread Hongyi Zhao
It seems that all the Fourier transform methods implemented in sagemath is numeric, instead of symbolic/analytic. I want to know whether there are some symbolic/analytic Fourier transform functions, just as we can do in mathematica, in sagemath? I want to know if there are some

Re: [sage-support] How to set the default pretty printing behaviour for sage?

2021-05-19 Thread Hongyi Zhao
On Wednesday, May 19, 2021 at 4:57:21 PM UTC+8 dim...@gmail.com wrote: > On Wed, May 19, 2021 at 9:53 AM Hongyi Zhao wrote: > > > > > > > > On Tuesday, May 18, 2021 at 9:53:44 PM UTC+8 dim...@gmail.com wrote: > >> > >> > >>

Re: [sage-support] How to set the default pretty printing behaviour for sage?

2021-05-19 Thread Hongyi Zhao
On Tuesday, May 18, 2021 at 9:53:44 PM UTC+8 dim...@gmail.com wrote: > > > On Tue, 18 May 2021, 14:36 Hongyi Zhao, wrote: > >> >> >> On Tuesday, May 18, 2021 at 6:31:08 PM UTC+8 dim...@gmail.com wrote: >> >>> >>> >>> On Tue, 18 May

Re: [sage-support] How to set the default pretty printing behaviour for sage?

2021-05-18 Thread Hongyi Zhao
On Tuesday, May 18, 2021 at 6:31:08 PM UTC+8 dim...@gmail.com wrote: > > > On Tue, 18 May 2021, 10:38 Hongyi Zhao, wrote: > >> >> >> On Tuesday, May 18, 2021 at 2:52:04 PM UTC+8 dim...@gmail.com wrote: >> >>> You can just load sage in ipython: &g

Re: [sage-support] How to set the default pretty printing behaviour for sage?

2021-05-18 Thread Hongyi Zhao
i.e. you won't be able to use ^ > instead of **, etc) > Thank you. When using the `--ipython` option to call sage, can I still have the magical function of the sage at the same time? Regards, HY > > On Tue, 18 May 2021, 06:27 Hongyi Zhao, wrote: > >> >> I want t

[sage-support] How to set the default pretty printing behaviour for sage?

2021-05-17 Thread Hongyi Zhao
I want to obtain the similar behavior in sage for pretty printing as in ipython. Any hints will be highly appreciated. Regards, HY -- 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