Dear Waldek,

Am Freitag, 20. Juli 2018 16:16:15 UTC+2 schrieb Waldek Hebisch:
>
> Martin R wrote: 
> > Curiously, the InputForm of products and sums gets rid 
> > of subscripted symbols automagically... 
>
> Well, you use dummy variables in input form.  Scripted symbols 
> only appear in names corresponding to dummies.  So in effect 
> you drop original names of variables, replacing them by 
> dummies.

 
Yes.  What I found curious is that the name is preserved in FriCAS:

(10) -> p := product(1/k, k=1..n)

           n
         ++-++  1
   (10)   | |   -
          | |   k
         k = 1
                                                    Type: 
Expression(Integer)
(12) -> p::INFORM

   (12)  (%defprod (/ 1 %B) %B k 1 n)
                                                              Type: 
InputForm
(16) -> product(1/%B, %B=1..n)

           n
         ++-++  1
   (16)   | |   -
          | |   k
         k = 1
                                                    Type: 
Expression(Integer)

At least for the sage interface it doesn't matter.  Python is slightly 
crippled what concerns identifiers, so I would have to replace the scripted 
symbol with something else anyway...

Attached a new patch, treating symbols in OutputForm special.

Best wishes,

Martin

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.

Attachment: df
Description: Binary data

  • Re: [fricas-devel] interop... Waldek Hebisch
    • Re: [fricas-devel] in... 'Martin R' via FriCAS - computer algebra system
      • Re: [fricas-devel... 'Martin R' via FriCAS - computer algebra system
        • Re: [fricas-d... Waldek Hebisch
          • Re: [fric... 'Martin R' via FriCAS - computer algebra system
            • Re: ... Ralf Hemmecke
            • Re: ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system
              • ... Waldek Hebisch
              • ... 'Martin R' via FriCAS - computer algebra system

Reply via email to