Yes, MathPiper is able to use Unicode characters:
In> αβγ
Result: αβγ
In> αβγ:= 7
Result: 7
In> αβγ * 3
Result: 21
However, I will need to enable the use of the ⊕ character before you
can use it. Do you have any other unicode characters that you would
like me to enable?
Also, of the three ways to implement an algebraic system in a CAS that
Ryoh Fuji-Hara listed, I think that #1 fits the current design of
MathPiper the best.
"(1) define new operators: for example; if we define an operator
%+% for addition on a finite field, then we could operate in the
following fashion: 2 %+% 4 . "
Ted
Yes, MathPiper is able to use Unicode characters:Sherm wrote:
> In MathPiper, I know that we can define our own INFIX operators and make
> them do whatever we want. This would be a shortcut way to get some of the
> functionality I would like to have, without making mods to the language
> itself.
>
> Do you know if we can use any UNICODE special characters in MathPiper, so
> that, for example, CIRCLED-PLUS (as a symbol) could be used to define the
> operator of Addition Mod (a preselected prime)?
In> αβγ
Result: αβγ
In> αβγ:= 7
Result: 7
In> αβγ * 3
Result: 21
However, I will need to enable the use of the ⊕ character before you
can use it. Do you have any other unicode characters that you would
like me to enable?
Also, of the three ways to implement an algebraic system in a CAS that
Ryoh Fuji-Hara listed, I think that #1 fits the current design of
MathPiper the best.
"(1) define new operators: for example; if we define an operator
%+% for addition on a finite field, then we could operate in the
following fashion: 2 %+% 4 . "
Ted
>> However, I will need to enable the use of the ⊕ character before you
>> can use it. Do you have any other unicode characters that you would
>> like me to enable?
>>
>
> Yes, circled-minus, circled-times, and circled-divide-slash.
Revision 4336 now has these characters available.
You can paste the symbols into the code where they are needed and here
is a copy of them that you can use:
⊕⊖⊗⊘
Ted
> Guys, please. It's not even funny. Using unicode characters in the code is
> not a sane idea, really.
If Sherm wants to experiment with using Fuji-Hara's "define new
operators" approach for implementing his algorithms, what new
operators would you suggest for this?
Ted
> Being a theoretician, I'm not good at experiments. Anyway, my advice is
> 1. use only ascii characters
> 2. use only characters which can be entered using standard US keyboard
> layout
> Rationale:
> 1. Encoding is still a problematic issue, and better avoided, especially in
> the source code which is being developed on many platforms.
> 2. How the hell I'm supposed to enter the characters using standard
> keyboard???
Unicode characters are easily entered using pallets of GUI buttons and
with named characters. Mathematica has a large number of these named
characters (many of which are used as operators) and this sets a
powerful precedence for it being okay to use this approach:
http://reference.wolfram.com/mathematica/guide/ListingOfNamedCharacters.html
Sherm, my thought is to go ahead and experiment with using named
unicode characters if you would like to.
Ted
Unicode characters are easily entered using pallets of GUI buttons and
with named characters.
Mathematica has a large number of these named
characters (many of which are used as operators) and this sets a
powerful precedence for it being okay to use this approach:http://reference.wolfram.com/mathematica/guide/ListingOfNamedCharacters.html
> I tried a quick idea on this basis and found it unworkable.
In what ways did you find it to be unworkable?
Ted