Questions tagged [input]
The input tag has no usage guidance.
134
questions
0
votes
1
answer
62
views
How to protect generated inline cells from editing?
I want to protect generated inline cell (which contains TeX source) from attempts to edit, since any attempt to regenerate box structure will fail. In particular, suppose in a text cell one creates ...
0
votes
0
answers
117
views
Extract equation as text from a screenshot
Is it possible to snip an equation from pc screen e.g. with windows snipping tool from edge or acrobat and paste it to wolfram math input online or Mathematica, like copy text from picture with ...
1
vote
1
answer
91
views
Importing aligned environment in TeX to Mathematica
The ToExpression command works well with scalars \frac{x}{\sqrt{5}} \mu S_1
...
0
votes
1
answer
62
views
Way to stop reading script file based on conditions, without an "if" block wrapping the entire file
I have a bunch of definitions written in a file that I load with Get["..."], . I would like add a line into the the file so that the evaluation of these ...
0
votes
1
answer
49
views
How to make this bisection code work for different equations?
I am very new to Mathematica. I have this code of Bisection Method for finding a root of a polynomial.
...
5
votes
2
answers
99
views
Bug of ChoiceDialog
I am using Mathematica 13.1 on Windows 11.
I have the following bug with ChoiceDialog:
...
0
votes
0
answers
49
views
How can I let each input show its number?
The problem I'm facing is that I want to know number of one input. For example, In[1]:= (...) then I know this is first input, but I found only the first input in a ...
3
votes
1
answer
82
views
How to select using input form?
Let us assume that we have the list with some names, say
list = {"Name1","Name2","Name3"};
How to make a graphical interface allowing ...
2
votes
2
answers
80
views
How to enter the input not directly in the code but in some interface sub-window? [closed]
I understand that the question is very basic, but I did not find the answer. Consider the parameters
parameter1="value";
parameter2 = 13;
Normally, these ...
0
votes
0
answers
18
views
How to print output within an input block? [duplicate]
I would like to print data within a signle input block in a way something like this:
...
0
votes
0
answers
24
views
Need a second click to use a palette
If I load the palette BasicTypesetting in a fresh kernel (Mathematica v12.2, Windows11) I observe flickering in the botten right corner of the palette window.
If I choose an element of the palette by ...
1
vote
1
answer
178
views
Error when trying to do TeX input with ImportString[]
I got this information from here (Last line of the details section): https://reference.wolfram.com/language/ref/menuitem/InlineTeXInput.html
My code:
...
0
votes
0
answers
50
views
Input Assistant screen location issue
I most often run a THREE monitor configuration from a Dell laptop. When I am editing a notebook on the monitor identified as #3 by Windows 11, the Autocomplete suggestions and other popups like ...
0
votes
0
answers
51
views
Changing permutation dynamically
I am trying to make a visualization of permutation as a graph. With the first compilation of program I want to get random permutation and then be able to dynamically change permutation that I desire ...
2
votes
1
answer
62
views
Why does the console REPL parse input differently from ToExpression?
In the console REPL, we can see that input is parsed in a certain way, that is not equivalent to simply calling ToExpression on the input string. From math.exe using Mathematica 13.1:
...
0
votes
1
answer
56
views
FormFunction and Program Input
I am trying to run a little program on the cloud where users have to supply some input - numbers. I wrote
enter code here formShort =
FormFunction[
FormObject[{{&...
1
vote
2
answers
103
views
A bug in InputField of type Expression?
I have a problem with a simple InputField of type Expression:
...
0
votes
0
answers
64
views
READKEY: Big claims on an old problem
In my old BORLAND PASCAL DOS, I often used keyboard commands in the form of an infinite loop, interrupted when reading some keys:
...
0
votes
1
answer
59
views
Is there a simple method to export an input cell? [duplicate]
This is a code of an input cell:
a = 1 + 5*8;
b = {6, 99};
Entity["MathWorld", "FunctionGraph"]
Plot[x, {x, First[b], Last[b]}]
I hope to get a ...
4
votes
1
answer
179
views
How to convert any string of code to an input cell?
This is a generalization of this question, which already has very nice answers.
Suppose str is a string of valid code, so that ...
2
votes
2
answers
274
views
How to generate input cells whose code is determined dynamically?
Following this post, I want to use code to generate an input cell with new code. However, unlike the linked post, I want my code to dynamically determine the new code to be printed in the input cell.
...
5
votes
0
answers
126
views
Characters and prompt are offset when typing in a text cell using MM13.1
I noticed on my system (Windows 10 and MM13.1) that when I create a text cell (ALT 7)
the longer my sentence is the more offset the cursor appears from where I am. When using the left arrow to go back ...
1
vote
0
answers
111
views
Mathematica can not interpret parentheses correctly [closed]
I want to sum up four terms but Mathematica does not interpret the parentheses correctly. In the picture, in second line there is only one term that starts with 1/12...
2
votes
1
answer
270
views
Stop Mathematica’s automatic indentation on existing notebooks
This question relates to Mathematica 12.3 (and possibly many other versions).
Mathematica's automatic indentation does not conform to my workflow. From the very old days of Mathematica 1.2, i.e. ...
4
votes
0
answers
40
views
Sequence in superscript
The code DisplayForm@SuperscriptBox[a,b,c] makes a invalid box. It still renders like $a^b$, but it's red with an error message (as it should be).
That being said,...
0
votes
2
answers
174
views
How to plot functions from user input?
Manipulate[g[x_] = f;
Plot[{g[x], g[2]}, {x, -9, 9}],
{{f, "Enter a function...", "f(x) ="}}]
Hi, I'm relatively new to Mathematica and this ...
2
votes
1
answer
161
views
How to construct this Matrix
A $4\times 4$ identity matrix $\mathbb{I}$ can be written as $\mathbb I=\delta_{ij}\delta_{kl}$.
To construct this matrix, I wrote
...
1
vote
1
answer
122
views
Style changes to Text while I want to be Input
I do know what happened to my Mathematica. I frequently have to change the style from Text to Input to write codes. How I can re-change this unwanted issue?
0
votes
0
answers
56
views
Inputting a data file into a module
I'm currently writing a module that converts a data source into a distance matrix. So far, the code I have works:
...
3
votes
1
answer
78
views
Have Button fire with both Kernel and FrontEnd
Here's some code which, when evaluated, types an expression in the cell below it:
...
2
votes
0
answers
40
views
Is there any function I can use to delete the cell automatically but at the same time keep the evaluated results
For, example, in the following code
...
6
votes
1
answer
339
views
How can I self-define a keyboard entry for 3-dot "Because"?
In Mathematica, there already exists a keyboard entry for 3-dot "Therefore", which provides great convenience for input as shown below.
However, I find it a little odd that for its ...
1
vote
2
answers
114
views
Control size of extensible parentheses and bracket
Consider \!\(\*SuperscriptBox[f,0]\)((a,b]). I would want that typeset something like
$$f^0((a,b])$$
or maybe
$$f^0\Big((a,b]\Big)$$
Instead it formats like
$$f^0((...
1
vote
2
answers
174
views
How to make an interactive calculator for any mathematical relation? [closed]
I am wondering if there is a way to make a calculator for any relation that is interactive.
First, I choose a relation with some variables in it.
The user will input a value for all of the variables ...
1
vote
2
answers
70
views
Problem when reading a small number as a LaTeX input
I've got a String variable defined as b="4.0 \cdot 10^{-5}", which is clearly written as LaTeX input.
The problem is that when I want to obtain the ...
3
votes
3
answers
1k
views
Read sympy expression in .txt file as Mathematica input
I have a Python file that has a variable defined using sympy. For instance, let us take the following (crazy) example that I could have eventually since I am automatizing a routine:
...
12
votes
1
answer
420
views
Input automatic replacement not working in 12.3 or 12.3.1
After installing Mathematica 12.3 (and now with 12.3.1) in Windows 10, the default automatic replacements like "->", ">=", "!=", etc. stop working.
...
1
vote
1
answer
544
views
How to enter multiple inputs into a function? [closed]
I'm sorry for asking such an elementary question but I started learning the Mathematica language just yesterday and I can't seem to find an answer anywhere else. I'm trying to calculate the change in ...
1
vote
1
answer
126
views
How to write this tensor?
How can I write this tensor in Mathematica?
$$\mathcal{P}_{ijkl}(N) = \Big( \delta_{ik} - N_iN_k \Big) \Big( \delta_{jl} - N_jN_l \Big) - \dfrac{1}{2} \Big( \delta_{ij} - N_iN_j \Big)\Big( \delta_{kl} ...
1
vote
0
answers
57
views
Strange behavior of typing a vector
When I input a complex 4-component vector, the mathematica throws an error:
After then, I obtained the InputForm of the errorneous result as follows:
...
6
votes
1
answer
75
views
Automatically set x=0, after each input/output ? ($AfterEachInputOutput)
Is it possible to do something that I want, after each input/output automatically and silently?
I am looking for a feature like $AfterEachInputOutput in the following code :
Example : to set variable ...
0
votes
0
answers
40
views
how do i stop the "=" symbol from creating "WolframAlphsShort" [duplicate]
how do I stop the "=" symbol from creating "WolframAlphsShort."
3
votes
3
answers
409
views
How to plot an array of lines?
I have the data stored in the textfile like this:
0.5 0.5 -0.7 -0.8
0.51 0.51 -0.75 -0.85
0.6 0.1 0.1 1.00
and so on
4 numbers in each row.
Two first numbers means coordinates (x0,y0), two last - (x1,...
1
vote
0
answers
135
views
Why in Mathematica and Wolfram Engine the result of this code is different?
f[x_] := Evaluate[Input["Enter a function to sum or integrate:"]]
Print[f[t]]
After starting, I enter x^2. Mathematica outputs $t^2$ while Wolfram Engine ...
0
votes
0
answers
54
views
Import Accuracy/General Accuracy
r[i] = SetPrecision[
Import[epath, {"Data", epath2, 9 + counts + 5*i - 2, excelfile2}],
prec];
epath is file name, epath2 is tab, count is row, ...
2
votes
4
answers
526
views
How can we make the input of a function multiple lists?
I want to create a function that takes inputs that are multiple lists of ordered quadruples. For example, when we run the code our input line should read something like inputs[{2,3,4,5},{6,7,8,9},...} ...
0
votes
1
answer
80
views
Entering complicated differential equation in mathematica
I am trying to enter a differential equation in mathematica. Example of such an equation is
$$\bigg[\bigg(\frac{\partial{}}{\partial{t}}+\omega_\eta\bigg)\left(\frac{\partial{}}{\partial{t}}+\omega_\...
2
votes
0
answers
82
views
How to read input stream with no newlines?
I have a script named stdout.wl:
...
2
votes
1
answer
114
views
Inconsistent Reading of shell command results
Summary: The results of a grep command on fixed text files SHOULD be extremely repeatable, but by the time they arrive in Mathematica they are not. When rapidly ...
1
vote
1
answer
31
views
ReadList nondeterministic (iCloud issue?)
ReadList returns different results on different runs.
A program that uses ReadList to read about 1000 text files in sequence is run repeatedly. Each file is opened, read and closed multiple times in ...