11
votes
Accepted
How exactly does Postfix notation work?
I would have expected this to either be the same as (a // f) /.a ->1, or as applying the replacement rule first and then the function ...
11
votes
Repeated string pattern: difference between the FrontEnd and WolframScript?
The notebook interface and the kernel have different parsers, because the notebook needs to manipulate the input before the kernel sees it for a variety of reasons. There are many differences between ...
8
votes
Accepted
Repeated string pattern: difference between the FrontEnd and WolframScript?
I suspect, much to my chagrin, that the FE is right and the InputForm parser is wrong. For one thing, the kernel itself thinks that parens are needed for Repeated:
...
7
votes
Accepted
Evaluate in place annoyance
Use Style with the option ShowStringCharacters -> False around the prompt:
...
7
votes
Accepted
Can we make preread replacements in an *.m* file before being run?
No. In fact, even $PreRead is ignored when reading .m files.
What you can do is define a myGet as
...
6
votes
Accepted
Can we make new definitions for InputForm in packages?
Unfortunately, I don't think there is. The association between characters and symbol names is burned into the kernel (in the form of a "yacc" grammar), with complete information about associativity, ...
6
votes
Accepted
What's the proper way to do percent multiplication in Mathematica?
The percent symbol % in Mathematica represents the last output Out[-1], see the Documentation for ...
6
votes
Accepted
How to recover these TemplateBox into normal form?
If you want to edit the box expressions, there're already some similar questions on MSE, such as 47213, 13317.
Solution 1
However, the direct use of ...
5
votes
Accepted
Old style ASCII input without Ctrl
The functionality still exists in current version of Mathematica, but it has slightly changed for several times in past versions.
According to my test, the functionality is introduced in v3, but auto ...
5
votes
Is there a good reason that there is no UnIconize?
Normally we don't like code images posted on this site, but I think in this case we should allow it, so I'm going ahead. Consider the following.
Clicking on Uniconize in the drop-down list, will give ...
5
votes
Accepted
Can I transform arithmetic operators to their equivalent function calls?
This can be done by
FullForm[a + b*c - d]
Plus[a,Times[b,c],Times[-1,d]]
4
votes
Is it possible to retrieve a previous un-evaluated, un-normalized input?
Another idea is to CellPrint the InString output:
...
4
votes
Accepted
Bug of ChoiceDialog
$Version
(* "13.2.1 for Mac OS X ARM (64-bit) (January 27, 2023)" *)
Clear["Global`*"]
From the documentation, "ChoiceDialog allows the ...
3
votes
What is the function/purpose of \!\(...\) in Graphics?
As Michael E2 explains in the comments, in the first case you have a string representation of boxes. You can get the expression they represent using ToExpression:
<...
3
votes
Accepted
How to enter the following number to InputDialog form?
You may use the default type of "Expression" for the input field. To eliminate the empty string in the input field, you can set the initial value to: Null.
Here is an example:
number =
...
3
votes
Get list of special characters
I copy pasted the input strings from the Listing of (not all) Named Characters, excluding the unicode characters and dashes. There are 1009 elements in that list.
...
3
votes
Doing calculations on values input in USD currency format (e.g., $1,234.56)
Stylesheet Approach
Easier than messing with $Pre is to never let the string get converted to boxes in the first place. We can do that by making a special ...
3
votes
Accepted
Improving accuracy of $GeoLocation in wolfram cloud forms
This seems to work well, it will ask you to give permissions to access gps data and then our JS will initialize "yourPosition" field with coordinates taken from <...
3
votes
Accepted
Convert ASCII Characters to Mathematica Input Form
As @Rohit suggests in the comments, one possibility is to use ToExpression. However, to be safer, one might want to use Symbol ...
2
votes
Getting all Unicode input forms with a certain property
So the idea will be to scrape from the UnicodeCharacters.tr file. Mr.Wizard shows some of that here.
First we get the file and split it by line:
...
2
votes
StandardForm to Infix form conversion is working but Infix to StandardForm not working. Why?
First of all, Infix isn't a function: it just a formatting wrapper which affects printing, but not evaluation (like NumberForm, <...
2
votes
Get list of special characters
The list of keyboard shortcuts for the Wolfram language and System is here.
The list of named characters for the Wolfram language and System is here.
For system names, try: ...
2
votes
Bug of ChoiceDialog
@BobHanlon is right. On windows 11 with MM 13.2.1 you need the vertical setting.
Otherwise it will be incomplete (should be a bug?)
...
1
vote
Importing aligned environment in TeX to Mathematica
Its complicated, but Import the LaTeX string and export it to a notebook is working.
...
1
vote
Why using InputForm makes cell output out of order with commands used?
Someone with more knowledge of parsing might have more details, but I suspect what's going on here is that at some point in the parsing of these expressions the line breaks are being interpreted as ...
1
vote
How to have a common input for different nb file
The easiest solution is using NotebookEvaluate.
I will provide a minimal example, assuming all files are saved in the same directory.
I have a file ...
1
vote
Accepted
1
vote
How to make an input for a Piecewise by Palettes?
I bootstrap the process by typing in something simple like
Piecewise[{{-1, x <= 0}, {x, x >= 0}}]
If you run that line in Mathematica (note: not a function ...
1
vote
How to input a number with a ring?
user31159's solution seems not always working at least on my system,
FromCharacterCode /@ Range[12881, 12895]
shows
I found this solution for numbers below 100
<...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
input-forms × 70formatting × 14
front-end × 9
string-manipulation × 9
syntax × 8
notebooks × 6
boxes × 6
input × 5
conversion × 4
bugs × 3
cells × 3
customization × 3
text × 3
display × 3
parsing × 3
replacement × 2
latex × 2
keyboard × 2
precision-and-accuracy × 2
inputfield × 2
command-line × 2
traditional-form × 2
development × 2
unicode × 2
named-characters × 2