Re: [fricas-devel] fricas get setelt etc.

2024-05-15 Thread Ralf Hemmecke
Maybe this might also be connected. http://fricas.github.io/api/XHashTable.html The Key can be any Hashable type. Ralf -- You received this message because you are subscribed to the Google Groups "FriCAS - computer algebra system" group. To unsubscribe from this group and stop receiving

Re: [fricas-devel] fricas get setelt etc.

2024-05-15 Thread Grégory Vanuxem
Le jeu. 16 mai 2024 à 02:36, Waldek Hebisch a écrit : > > On Thu, May 16, 2024 at 02:09:21AM +0200, Grégory Vanuxem wrote: > > Hello Waldek, > > > > Exactly what I was looking for. Thanks. > > > > I thought only integer based indexing was allowed, and since Record is > > a FriCAS primitive I

Re: [fricas-devel] fricas get setelt etc.

2024-05-15 Thread Waldek Hebisch
On Thu, May 16, 2024 at 02:09:21AM +0200, Grégory Vanuxem wrote: > Hello Waldek, > > Exactly what I was looking for. Thanks. > > I thought only integer based indexing was allowed, and since Record is > a FriCAS primitive I thought indexing by Symbol, or whatever, was not > possible. Note that

Re: [fricas-devel] Windows installer for official l FriCAS - GitHub commit: 06a45d0

2024-05-15 Thread Grégory Vanuxem
Hello Qian, I just checked, since some of your work it is now possible to use the Windows nightly build, I better understand. Having a self installer was more destined for official releases because Windows users, usually, expect an installer and a way via "add/remove programs" to cleanly delete

Re: [fricas-devel] fricas get setelt etc.

2024-05-15 Thread Grégory Vanuxem
Hello Waldek, Exactly what I was looking for. Thanks. I thought only integer based indexing was allowed, and since Record is a FriCAS primitive I thought indexing by Symbol, or whatever, was not possible. - Greg Le mar. 14 mai 2024 à 22:41, Waldek Hebisch a écrit : > > On Tue, May 14, 2024 at

Re: [fricas-devel] create directory in OS independent way

2024-05-15 Thread Waldek Hebisch
On Wed, May 15, 2024 at 11:32:04PM +0200, Ralf Hemmecke wrote: > For a given fn of type FileName I cannot simply say > > fh := open(fn, "output") > > if the folder directory(fn) does not yet exist. > I haven't found any other way than using > > systemCommand("system mkdir -p " directory

[fricas-devel] create directory in OS independent way

2024-05-15 Thread Ralf Hemmecke
For a given fn of type FileName I cannot simply say fh := open(fn, "output") if the folder directory(fn) does not yet exist. I haven't found any other way than using systemCommand("system mkdir -p " directory fn)$MoreSystemCommands . Is there a more OS-independent way to create a

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Waldek Hebisch
On Wed, May 15, 2024 at 07:28:50PM +0800, Qian Yun wrote: > OK, so for radicals, there should be a much more effective > method to determine its sign. Seems like current method is > mostly focused on polynomials and pretty limited for radicals. We are looking at sign of argument to a radical.

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Qian Yun
OK, so for radicals, there should be a much more effective method to determine its sign. Seems like current method is mostly focused on polynomials and pretty limited for radicals. - Qian On 5/15/24 19:12, Waldek Hebisch wrote: On Wed, May 15, 2024 at 06:47:45PM +0800, Qian Yun wrote: You

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Waldek Hebisch
On Wed, May 15, 2024 at 06:47:45PM +0800, Qian Yun wrote: > You said before AlgebraicNumber should represent any branch > of the root, but here we are talking about the sign of radical. > > Does that mean we are taking a specific branch interpretation here? Yes. Othewise there is problem with

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Qian Yun
You said before AlgebraicNumber should represent any branch of the root, but here we are talking about the sign of radical. Does that mean we are taking a specific branch interpretation here? - Qian On 5/15/24 17:42, Waldek Hebisch wrote: TrigonometricManipulations (which implements imag) is

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Ralf Hemmecke
Thank you, Waldek, that explains the behaviour much better. I suspected that there must be some numerics involved, but when I had put debugging output near places where I saw Float-s, that never appeared, so I got a bit confused and didn't want to waste more time on this. Potentially, I

Re: [fricas-devel] bug?: difficulty to extract imaginary part

2024-05-15 Thread Waldek Hebisch
On Wed, May 15, 2024 at 07:19:08AM +0200, Ralf Hemmecke wrote: > On 5/15/24 01:21, Qian Yun wrote: > > One possible explanation: > > > > )compile a spad file clears internal Kernel cache. > > > > So the following computation can have messed up Kernel order. > > > > So after compiling a spad