Simplest way to create Symbols in Spad?

11 views
Skip to first unread message

Neven Sajko

unread,
Aug 5, 2021, 6:18:56 AM8/5/21
to fricas...@googlegroups.com
Hello,

I know that I can create a Symbol like so:
"n"::Symbol

But is there a simpler way, like there is for strings (just "n", with
the double quotes).


Thanks,
Neven

Waldek Hebisch

unread,
Aug 5, 2021, 7:15:11 AM8/5/21
to fricas...@googlegroups.com
In Spad just use 'x, that is single quote before x. In interpreter
I am affraid that you must use coercion...

--
Waldek Hebisch

Bill Page

unread,
Sep 1, 2021, 9:50:26 PM9/1/21
to fricas...@googlegroups.com
You might find the following useful:

(1) -> name(xx)    

   (1)  xx
                                                                 Type: Symbol
(2) -> new()

   (2)  %A
                                                                 Type: Symbol
(3) -> new()

   (3)  %B
                                                                 Type: Symbol


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fricas-devel/20210805111507.GB10149%40math.uni.wroc.pl.
Reply all
Reply to author
Forward
0 new messages