Another way using WS language:

(1) -> jWSExpr(-2/3)

   (1)

     2
   -(-)
     3

              Type: JLWSExpression
                                                            Time: 0.01 (IN)
+ 0.01 (EV) + 5.61 (OT) = 5.64 sec
(2) -> sqrt %

   (2)

          2
   I sqrt(-)
          3

              Type: JLWSExpression

Time: 0.02 (EV) + 0.10 (OT) = 0.12 sec
(3) -> sin %

   (3)

               2
   I sinh(sqrt(-))
               3

              Type: JLWSExpression

        Time: 0.08 (OT) = 0.09 sec
(4) -> asin %

   (4)

          2
   I sqrt(-)
          3

              Type: JLWSExpression

        Time: 0.09 (OT) = 0.10 sec
(5) -> %^2

   (5)

     2
   -(-)
     3

Le jeu. 15 mai 2025 à 19:40, Grégory Vanuxem <g.vanu...@gmail.com> a écrit :

> Hello here,
>
> Can you explain me this:
>
> ==
>
> └─$ jlfricas
> Checking for foreign routines
> FRICAS="/usr/local/lib/fricas/target/x86_64-linux-gnu"
> spad-lib="/usr/local/lib/fricas/target/x86_64-linux-gnu/lib/libspad.so"
> foreign routines found
> openServer result 0
>                        FriCAS Computer Algebra System
>           Version: jlFriCAS 1.3.12-dev built with SBCL 2.5.2.debian
>                  Timestamp: Wed Apr 16 09:50:54 AM CEST 2025
>
> -----------------------------------------------------------------------------
>    Issue )copyright to view copyright notices.
>    Issue )summary for a summary of useful system commands.
>    Issue )quit to leave FriCAS and return to shell.
>
> -----------------------------------------------------------------------------
>
>
> (1) -> jnecf (-2/3)
>
>    (1)  -0.666667 {-2/3}
>
>            Type: NMExactCalciumField
>
> Time: 0.13 (EV) + 3.88 (OT) = 4.01 sec
> (2) -> sqrt %
>
>    (2)  0.816497*I {(a)/3 where a = 2.44949*I [a^2+6=0]}
>
>            Type: NMExactCalciumField
>
>                       Time: 0.01 sec
> (3) -> sin %
>
>    (3)
>   0.910291*I {(-a^2*c+c)/(2*a) where a = 0.441977 [Exp(-0.816497
> {(b*c)/3})], b = 2.44949*I [b^2+6=0], c = I [c^
>   2+1=0]}
>
>            Type: NMExactCalciumField
>
>           Time: 0.02 (EV) = 0.02 sec
>
> (4) -> asin %
>
>    (4)  0.816497*I {(a)/3 where a = 2.44949*I [a^2+6=0]}
>
>            Type: NMExactCalciumField
>
>           Time: 0.02 (EV) = 0.02 sec
> (5) -> %^2
>
>    (5)  -0.666667 {-2/3}
>
>            Type: NMExactCalciumField
>
>                       Time: 0.02 sec
> (6) -> -2/3
>
>           2
>    (6)  - -
>           3
>
>              Type: Fraction(Integer)
>
>                          Time: 0 sec
> (7) -> sqrt %
>
>          +---+
>          |  2
>    (7)   |- -
>         \|  3
>
>                Type: AlgebraicNumber
>
>           Time: 0.03 (OT) = 0.03 sec
> (8) -> sin %
>
>              +---+
>              |  2
>    (8)  sin( |- - )
>             \|  3
>
>            Type: Expression(Integer)
>
>                          Time: 0 sec
> (9) -> asin %
>
>                   +---+
>                   |  2
>    (9)  asin(sin( |- - ))
>                  \|  3
>
>            Type: Expression(Integer)
>
>                          Time: 0 sec
> (10) -> %^2
>
>                    +---+  2
>                    |  2
>    (10)  asin(sin( |- - ))
>                   \|  3
>
>            Type: Expression(Integer)
>
>                          Time: 0 sec
> (11) ->
>
> Is it related to complex number handling or the fact that EXPR(INT) is
> used a lot (algebraic number for example). Or I am totally wrong.
>
> Greg
>

-- 
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 emails from it, send an email 
to fricas-devel+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dY3e_9eHoL%3DbmGFiixC%2BMowtd28Rw4_HkWCGOHWG-ryNg%40mail.gmail.com.

Reply via email to