Dear Martin,

Le dimanche 12 janvier 2025 à 14:25:54 UTC+1, axio…@yahoo.de a écrit :

Sorry, I don't understand.

On Sunday, 12 January 2025 at 12:55:26 UTC+1 emanuel.c...@gmail.com wrote:

Le vendredi 10 janvier 2025 à 22:36:39 UTC+1, axio…@yahoo.de a écrit :

fricas dilog and sage dilog are not the same:

That’s my point. See below. 

sage: fricas(polylog(3, x))
polylog(3,x)
sage: fricas(dilog(x))
dilog(- x + 1)

This deserves a github issue. Fixing the interface is (probably) not that 
hard… Would you mind issuing this ?


I don't understand what you mean with "fixing the interface".  The 
definitions of dilog in FriCAS and SageMath differ:

sage: dilog(1.0)
1.64493406684823
sage: fricas.dilog(0.0)
1.6449340668_4822643647_24152

(this is pi^2/6)

The translation of dilog done by the interface is (hopefully) correct.  So, 
the only thing that we could do is to change SageMath's definition.

Nope. From what you say follows that Sage’s dilog(x) and Fricas’ dilog(1-x) 
are the *same mathematical object*. Therefore, the Fricas translation of 
Sage’s dilog(<something>) should be dilog(1-<something>). And *vice-versa* 
: the Sage’s translation of Fricas’ dilog(<something>) should be Sage’s 
dilog(1-<something>).

This can (and should, IMNSHO) be made in the interface.

HTH,

If I understand correctly, the definition of polylog is the same in FriCAS 
and SageMath.

Martin

​

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sage-devel/7e260cf6-d6b5-45b1-9d59-c07b30507b0dn%40googlegroups.com.

Reply via email to