Re: [fricas-devel] How one talk to sqlite3 database from Fricas?

2023-12-23 Thread Qian Yun
There's no direct support. You can try the following methods: 1. construct SQL strings and pass them to external sqlite process. 2. use a Common Lisp sqlite library. This requires some programming. 3. use C FFI interface, this also requires some programming. 4. use sage to interface with SQL

[fricas-devel] How one talk to sqlite3 database from Fricas?

2023-12-23 Thread 'Nasser M. Abbasi' via FriCAS - computer algebra system
I googled and could not find hit on this. Is it possible to open SQLITE3 database file from Fricas and read/write to the database using SQL? Currently all my integration problems are stored in sqlite3 database which is open source database. Both Maple and

Re: [fricas-devel] Recursive call to interpreter

2023-12-23 Thread Qian Yun
On 12/24/23 09:41, Waldek Hebisch wrote: Well, with this '$timedNameStack' is balanced. But there is still trouble with acconting: since 'stopTimingProcess' was not called we will either ignore or assign to wrong context resources used in context that did 'THROW'. If there's throw to top

Re: [fricas-devel] Recursive call to interpreter

2023-12-23 Thread Waldek Hebisch
On Sun, Dec 24, 2023 at 08:59:49AM +0800, Qian Yun wrote: > > > On 12/23/23 22:55, Waldek Hebisch wrote: > > On Fri, Dec 22, 2023 at 07:28:32PM +0800, Qian Yun wrote: > > > > > > > > > On 12/20/23 09:58, Waldek Hebisch wrote: > > > > On Wed, Dec 20, 2023 at 08:03:02AM +0800, Qian Yun wrote: >

[fricas-devel] Sage and Rename 'rootOfADE' to 'ADEseq'

2023-12-23 Thread Qian Yun
In Sagemath's FriCAS interface, there is: register_symbol(lambda *args: explicitly_not_implemented("rootOfADE"), {'fricas': 'rootOfADE'}, 2) Although it is not implemented, the rename will affect the interface. This should be kept in mind when FriCAS gets version bump in Sage. -

Re: [fricas-devel] Recursive call to interpreter

2023-12-23 Thread Qian Yun
On 12/23/23 22:55, Waldek Hebisch wrote: On Fri, Dec 22, 2023 at 07:28:32PM +0800, Qian Yun wrote: On 12/20/23 09:58, Waldek Hebisch wrote: On Wed, Dec 20, 2023 at 08:03:02AM +0800, Qian Yun wrote: You mean current problem with nested stats collection? If using each '$timedNameStack is

Re: [fricas-devel] What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread Waldek Hebisch
On Sat, Dec 23, 2023 at 12:42:12PM -0800, 'Nasser M. Abbasi' via FriCAS - computer algebra system wrote: > Maple has very useful command op(expression) > which > basically extracts operands of the expression to an expression

Re: [fricas-devel] Re: What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread Ralf Hemmecke
On 12/23/23 21:53, 'Nasser M. Abbasi' via FriCAS - computer algebra system wrote: What I meant to say, the lists in Fricas have to be same type, else it will not work with concat. Here is an example 20) -> L1:=[1,2,3] (23) -> L2:=["D","E","F"] (24) -> concat(L1,L2) gives error. Yes. And

Re: [fricas-devel] Re: What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread Grégory Vanuxem
Le sam. 23 déc. 2023 à 21:53, 'Nasser M. Abbasi' via FriCAS - computer algebra system a écrit : > > What I meant to say, the lists in Fricas have to be same type, else it will > not work with concat. Here is an example > > 20) -> L1:=[1,2,3] > (23) -> L2:=["D","E","F"] > (24) -> concat(L1,L2) >

Re: [fricas-devel] many broken links at https://fricas.github.io/examples.html

2023-12-23 Thread Ralf Hemmecke
The first link works, but few I tried after that are all broken. Sorry, my fault. Replace in http://fricas-wiki.math.uni.wroc.pl/FriCASIntegration fricas-wiki.math.uni.wroc.pl by wiki.fricas.org so you get (https) https://wiki.fricas.org/FriCASIntegration I will regenerate the pages as

[fricas-devel] many broken links at https://fricas.github.io/examples.html

2023-12-23 Thread 'Nasser M. Abbasi' via FriCAS - computer algebra system
fyi, when I was browsing help on Fricas, I noticed many links do not work on https://fricas.github.io/examples.html The first link works, but few I tried after that are all broken. --Nasser -- You received this message because you are subscribed to the Google Groups "FriCAS - computer

[fricas-devel] Re: What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread 'Nasser M. Abbasi' via FriCAS - computer algebra system
What I meant to say, the lists in Fricas have to be same type, else it will not work with concat. Here is an example 20) -> L1:=[1,2,3] (23) -> L2:=["D","E","F"] (24) -> concat(L1,L2) gives error. But in Maple using op() L1:=[1,2,3]; L2:=["E","F","G"]; L3:=[ op(L1) , op(L2) ];

Re: [fricas-devel] What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread Grégory Vanuxem
Hello, This is not what you are looking for but you can use ´append’ eventually if necessary with ´map’´. For sure there more command for that. And sorry for thé bad quote character. Le sam. 23 déc. 2023 à 21:42, 'Nasser M. Abbasi' via FriCAS - computer algebra system a écrit : > Maple has

[fricas-devel] What is Fricas equivalent to Maple op command (extract operands from expression)

2023-12-23 Thread 'Nasser M. Abbasi' via FriCAS - computer algebra system
Maple has very useful command op(expression) which basically extracts operands of the expression to an expression sequence. For example, gives two lists and if I want to join the two lists into one list, I could do

Re: [fricas-devel] Recursive call to interpreter

2023-12-23 Thread Waldek Hebisch
On Fri, Dec 22, 2023 at 07:28:32PM +0800, Qian Yun wrote: > > > On 12/20/23 09:58, Waldek Hebisch wrote: > > On Wed, Dec 20, 2023 at 08:03:02AM +0800, Qian Yun wrote: > > > > > > You mean current problem with nested stats collection? > > > If using each '$timedNameStack is in its own dynamic