Skip to main content
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 ...
Szabolcs's user avatar
  • 236k
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 ...
Robert Jacobson's user avatar
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: ...
Itai Seggev's user avatar
  • 14.3k
7 votes
Accepted

Evaluate in place annoyance

Use Style with the option ShowStringCharacters -> False around the prompt: ...
kglr's user avatar
  • 401k
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 ...
Itai Seggev's user avatar
  • 14.3k
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, ...
Itai Seggev's user avatar
  • 14.3k
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 ...
Alexey Popkov's user avatar
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 ...
rnotlnglgq's user avatar
  • 3,750
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 ...
xzczd's user avatar
  • 68.4k
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 ...
m_goldberg's user avatar
  • 108k
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]]
user64494's user avatar
  • 29.1k
4 votes

Is it possible to retrieve a previous un-evaluated, un-normalized input?

Another idea is to CellPrint the InString output: ...
Carl Woll's user avatar
  • 132k
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 ...
Bob Hanlon's user avatar
  • 163k
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: <...
Alexey Popkov's user avatar
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 = ...
Daniel Huber's user avatar
  • 56.4k
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. ...
Adam's user avatar
  • 4,006
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 ...
b3m2a1's user avatar
  • 47.1k
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 <...
Kuba's user avatar
  • 138k
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 ...
Carl Woll's user avatar
  • 132k
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: ...
b3m2a1's user avatar
  • 47.1k
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, <...
Alexey Popkov's user avatar
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: ...
Syed's user avatar
  • 59.5k
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?) ...
Lou's user avatar
  • 4,064
1 vote

Importing aligned environment in TeX to Mathematica

Its complicated, but Import the LaTeX string and export it to a notebook is working. ...
Roland F's user avatar
  • 4,628
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 ...
lericr's user avatar
  • 34.1k
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 ...
Natas's user avatar
  • 2,330
1 vote
Accepted

TagBox Column and comments

Here's a fragile hack ...
b3m2a1's user avatar
  • 47.1k
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 ...
MikeY's user avatar
  • 7,213
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 <...
matheorem's user avatar
  • 17.4k

Only top scored, non community-wiki answers of a minimum length are eligible