Skip to main content

Questions tagged [input]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

Mathematica 13.1 - New Cell Options

I have been using Mathematica for many years now and never encountered anything like that. My version is 13.1. In one of my notebooks, I must have clicked some shortcut by mistake, and now the new ...
Omer Amit's user avatar
1 vote
0 answers
61 views

Upper and lower case sensitivity when entering entities, but inconsistent

When you type Entity["Chemical", "Hydrogen"] or Entity["Chemical", "hydrogen"] it will ...
Armin Vollmer's user avatar
2 votes
0 answers
31 views

How can I have a dynamic number of InputForms that grows as I add to it?

I'm trying to write a program where it starts with one input field, and if I fill out that input field, then another input field gets added below the first one and if I fill that one out another ...
Xylochoron's user avatar
3 votes
1 answer
67 views

Help with Using Checkboxes to Open a Table

Using MMA 12.2 MMA offers a very nice table associated with each of the planets. Here is the code as an example: ...
fiz's user avatar
  • 734
0 votes
0 answers
38 views

Disabling Natural Language Input in browser Notebook?

After a year or so I just came back to Wolfram Alpha Notebooks. But it seems that the default for inserting new cells is now NaturalLanguageInput. This is quite cumbersome as I can't even write a ...
WaterFox's user avatar
  • 185
3 votes
1 answer
90 views

Multiple dropdown dialogs in the same window?

Consider a few dropdown dialogs: ...
John Taylor's user avatar
  • 5,827
1 vote
1 answer
70 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 ...
Acus's user avatar
  • 3,670
0 votes
0 answers
289 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 ...
Mole65's user avatar
  • 1
1 vote
1 answer
96 views

Importing aligned environment in TeX to Mathematica

The ToExpression command works well with scalars \frac{x}{\sqrt{5}} \mu S_1 ...
florin's user avatar
  • 1,798
0 votes
1 answer
68 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 ...
Mercan's user avatar
  • 3
0 votes
1 answer
51 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. ...
Learner's user avatar
  • 219
5 votes
2 answers
105 views

Bug of ChoiceDialog

I am using Mathematica 13.1 on Windows 11. I have the following bug with ChoiceDialog: ...
John Taylor's user avatar
  • 5,827
0 votes
0 answers
52 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 ...
hchsmit's user avatar
3 votes
1 answer
86 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 ...
John Taylor's user avatar
  • 5,827
2 votes
2 answers
84 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 ...
John Taylor's user avatar
  • 5,827
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: ...
Mari's user avatar
  • 1
1 vote
1 answer
229 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: ...
vasili111's user avatar
  • 1,215
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 ...
OpticsMan's user avatar
  • 576
2 votes
1 answer
67 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: ...
Walhiskaz's user avatar
0 votes
1 answer
61 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[{{&...
RUG's user avatar
  • 61
1 vote
2 answers
114 views

A bug in InputField of type Expression?

I have a problem with a simple InputField of type Expression: ...
Alexey Popkov's user avatar
0 votes
0 answers
67 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: ...
rosu_constantin's user avatar
0 votes
1 answer
64 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 ...
yode's user avatar
  • 26.8k
4 votes
1 answer
191 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 ...
WillG's user avatar
  • 960
2 votes
2 answers
279 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. ...
WillG's user avatar
  • 960
5 votes
0 answers
135 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 ...
Lou's user avatar
  • 3,832
1 vote
0 answers
117 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...
TQFT's user avatar
  • 11
2 votes
1 answer
339 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. ...
Adalbert Hanßen's user avatar
4 votes
0 answers
42 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,...
Adam's user avatar
  • 3,956
0 votes
2 answers
195 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 ...
dcjs34's user avatar
  • 1
2 votes
1 answer
167 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 ...
user824530's user avatar
1 vote
1 answer
147 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?
Ali's user avatar
  • 131
0 votes
0 answers
62 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: ...
user avatar
3 votes
1 answer
79 views

Have Button fire with both Kernel and FrontEnd

Here's some code which, when evaluated, types an expression in the cell below it: ...
Adam's user avatar
  • 3,956
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 ...
Lawrence's user avatar
6 votes
1 answer
358 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 ...
AlbertLew's user avatar
  • 483
1 vote
2 answers
137 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((...
Adam's user avatar
  • 3,956
1 vote
2 answers
202 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 ...
Peter Burbery's user avatar
1 vote
2 answers
79 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 ...
edgardeitor's user avatar
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: ...
edgardeitor's user avatar
12 votes
1 answer
428 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. ...
jjagmath's user avatar
  • 411
1 vote
1 answer
681 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 ...
Trevz's user avatar
  • 11
1 vote
1 answer
136 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} ...
mattiav27's user avatar
  • 6,727
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: ...
Laplacian's user avatar
  • 1,053
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 ...
imida k's user avatar
  • 4,295
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."
user75853's user avatar
3 votes
3 answers
433 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,...
Михаил Кочубей's user avatar
1 vote
0 answers
140 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 ...
Anixx's user avatar
  • 3,585
0 votes
0 answers
55 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, ...
Rookey's user avatar
  • 43
2 votes
4 answers
551 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},...} ...
user avatar