Questions tagged [input]

The tag has no usage guidance.

3
votes
2answers
82 views

How do I import data formatted in C or Fortran into Wolfram Language?

I want to import some data that has been formatted using C language. I am not sure if there is a way to read in data by specifying column widths in WL. The data has been formatted using ...
0
votes
0answers
36 views

Parameter sweeps on a HPC cluster

I have a mathematica *.wl file set up, such that there are a couple of parameters defined in the beginning, and, when run, it produces a few outputs. I can run this script on a Slurm-run HPC cluster ...
0
votes
0answers
42 views

How to convert {x -> 4} to simply 4? [duplicate]

I am using the Solve function to obtain two solutions for a quadratic, then I want to use those two solutions as input for something else but I can't because they are in the form of (x->number} ...
0
votes
1answer
51 views

Advanced Dynamic Input

Note: I have corrected this question to fix an error in my understanding of RealExponent (which I have now removed). Suppose that I have a bunch of parameters that I want to set interactively using ...
3
votes
1answer
76 views

Looking for alternative to programmatically-generated palette

Short version of the question: Is there a way to have an escape-sequence alias (or user-defined keyboard shortcut) pop up a dialog box or other type of input structure allowing the selection of a ...
5
votes
2answers
82 views

Sub-subscripts in strings cause different spacings than subscripts

Spacing around subscripts within strings seems to work well: But the spacing around sub-subscripts does not: I did not manually add that space after the 2. How can this be fixed? Thanks!
2
votes
1answer
53 views

Define Macros to automatically change keyboard input

When using Solve for example, I find myself having to use it in conjunction with other types of functions, like Flatten or ...
0
votes
0answers
27 views

Cursor / edit text in 11.3

I recently updated to 11.3 from 11.2 and am finding the most annoying problem: After typing out an input expression and evaluating it, I cannot immediately edit the input cell. Hovering over the ...
2
votes
1answer
78 views

Is it possible to enter tabular data in Mathematica? [duplicate]

I want to enter table of X and Y values then plot them. I don't want to enter brackets and or commas. Can I prepare grid for myself and them fill it with data in Mathematica, like in Excel? I found ...
0
votes
0answers
66 views

Keyboard Interacting problem using Free-form Wolfram Language input

I'm trying to perform a Free-form Wolfram Language input. I touch CTRL+= but it doesn't do anything It is strange because the key = works fine Is there another way of using that function? ...
-1
votes
1answer
59 views

Different variables for same equation [closed]

a = {25.0,32.0}; k = {100.0,28.0}; P = (1.92*a^(2/3) - 0.02 + 0.8*k^(-3/4)); In the second equation (which is P) I want to use a1=25 and k1=100 firstly after ...
7
votes
2answers
237 views

Mixed fraction input

How do I make mathematica treat $5\frac{1}{2}$ as a mixed fraction rather than 5 times one-half? I'm using typesetting keyboard shortcuts (if that's important) Currently I'm using $(5 + \frac{1}{2})$...
1
vote
1answer
39 views

Use FormPage to define a variable for later use

I want to be able to use FormPage (or FormFunction) to be able to create an Association List for later use in a notebook. This ...
16
votes
1answer
183 views

How can I view the minimal required arguments of a Wolfram Language function?

This question might be a bit of an overstretch, or really obvious, but I haven't been able to find an answer yet. Is there a way to automatically view the minimum required arguments for a WL function?...
3
votes
1answer
56 views

Inconsistent behaviour using string with superscript as label

This might be a silly question, but actually I lost a bit of time to figure out what I was doing wrong and now I want to understand better. Moreover, I'm not sure if the behaviour I see is a bug or ...
3
votes
2answers
106 views

Colour panel upon condition of an input field

I have something like a "mortgage calculator", and I now want to colour the panel depending on the inputs that the user has made in my input fields. This would be the code: ...
8
votes
1answer
207 views

How use Iconize object assigned to a variable (Mathematica 11.3)?

In Mathematica 11.3 we have the new Iconize function. Say I create an iconized image grabbed from the web, like this: ...
1
vote
1answer
80 views

Need input control for manipulate allowing custom data

I am working on an a Ray Tracer for optical lens. Currently my code takes in a list of lens data: ...
2
votes
0answers
64 views

How to represent arbitrarily dimensioned vectors in mathematica?

I've seen here that vectors in Mathematica can be represented as lists. I was recently trying to do the computation Solve[(a + (x-1)*b).b==0, x] where a and b are ...
2
votes
1answer
52 views

Input without dialog

I'm programming a game, similar to a Sudoku in the sense that you have to put numbers in a grid. When Sudoku is played in a computer, (for instance, in https://www.chiark.greenend.org.uk/~sgtatham/...
3
votes
2answers
58 views

How to see the definition of `In[n_]` for some `n`? [duplicate]

After running the code In[1]:= a = 2; In[2]:= ++a Out[2]= 3 if In[2] is evaluated repeatedly, ...
0
votes
0answers
40 views

Is there a way to reverse inline control to normal expression?

We can use Shift+Ctrl+Enter to convert an expression to inline control, as stated in here. But how to reverse that effect? Edit As Alexei Boulbitch suggested, ...
0
votes
0answers
126 views

Creating a dialog window

I would like to create a dialog like the one in the picture: where by default: the content of $x_1$, $y_1$, $F_{x1}$, $F_{x2}$, $M_{z1}$ is $0$; the content of $\theta_{e1}$ is disabled; the tips ...
3
votes
2answers
112 views

How to remove quotation marks from InputString?

I want to make a script for solving liniar equations (in Mathematica) with something like: Solve[{InputString["Solving Linear Equations"]}] The output is similar ...
1
vote
2answers
70 views

2D input for partial derivative

If I input D[f[x,y],x] the output is $f^{(1,0)}[x,y]$. If I copy and paste this output then it works as an input as expected. However, if I manually type the ...
7
votes
1answer
1k views

How can I get 'KeyDown' without writing 26 commands?

EventHandler and {"KeyDown","x"} work for registering a specific letter. Is there a direct way to return whichever letter keys ...
1
vote
1answer
96 views

I want to pause execution until input is submitted without using Ask or

I am developing a Yahtzee-type PC game. I would like the program to pause execution until the player has selected one, two, or all three checkboxes and clicked on "Clicked when done." (See below.) ...
3
votes
2answers
94 views

Apply a style to a selected structure

If I type out, in my notes, a series of transformations, I often like to convert the very last step to a Framed equation: I'm currently doing this by: selecting ...
1
vote
0answers
54 views

InputAutoReplacement inside an Inline Cell

I use InputAutoReplacements to speed up my textual writing. Consider the code below. ...
1
vote
1answer
50 views

How to write a code for user defined list

I want to make a 1 dimension list like {x[1],x[2],...} I want it to be filled by a user, maybe using Input[] function.
1
vote
1answer
79 views

File I/O: File is not encoded [closed]

I have a .wl file which should write a number to a .m file (using Put), and another .wl file that will later read that number back (using ...
1
vote
2answers
100 views

Multidimensional plot of output value over all possible combinations of input variables in mathematica

In Mathematica I have a self-defined function in Mathematica: outputval = myfunc[v1, v2, v3, v4, v5, v6, v7, v8, v9] When the function is called as above with ...
0
votes
1answer
68 views

How can I get an array of numbers from the user and show the numbers with formatting?

Suppose that I have to print the following lines: Number 1 is 5 Number 2 is 6 Number 3 is 7 Number 4 is 8 Number 5 is 9 Now, if I were programming in C, I would have run the following code : ...
4
votes
2answers
115 views

Base 12 input and output without ^^ or BaseForm

I would like to be able to enter numbers and have them interpreted in base 12 and output in base 12. For example, I want 13+A to produce ...
3
votes
1answer
349 views

How do I accept user input through keyboard?

In a user experiment, I wish to ask the user to rate images on a scale of 1 to 5. The user will be given instructions at the beginning of the experiment. On the screen, an image will be displayed and ...
17
votes
1answer
873 views

How do I remove the little × that shows up in the frontend when typing?

Version 11.1 now shows a little grayed out × (a multiplication sign) when one is editing something, to warn them that the expression will be interpreted as the ...
10
votes
1answer
183 views

Performance-driven approach to using Big Data without killing the hard-drive

Situation A calculation has to be done in which the amount of data is too much to fit into memory. Fortunately, only a part of the overall data set has to be known at a time. The preprocessing is ...
9
votes
1answer
346 views

How to paste formatted Mathematica code *verbatim* from external text editor to notebook?

In my text editor, Mathematica code may look like this: YMMV, of course, but I at least find this easy to read. If I copy that snippet of code and paste into a Mathematica notebook, it looks like ...
0
votes
1answer
148 views
1
vote
3answers
882 views

How do I make ListPlot join the points in order? [closed]

I gave ListPlot a set of points to plot and join together. The problem is that It's drawing the line in some way other than the order that I input them as. ...
0
votes
1answer
130 views

Using Rotation Matrix Data Applied to a Cube: Visualization

I've written a program that calculates the rotation matrices of a cube over time. The program outputs the matrices to a data file in the form of a series of Mathematica styled matrices (i.e. {{a11,a12,...
3
votes
2answers
85 views

Find the input definition

Consider the following definition a = D[x,x] Now, a=1. Is there a way in which I can recover the information about the input ...
1
vote
1answer
186 views

I can't see any in[] and out[] in my notebook [closed]

I can open my notebook but when i write, for example, x+2 = 5 I can't see on the left any " in[]= " and when i click enter the notebook doesn't show me anything (i can't see the " Out[]= ".
3
votes
1answer
128 views

How to read *all* input from stdin?

The answers given to this similar question won't do, because those solutions read only one line from stdin. I want to read all available lines, pretty much in the ...
10
votes
1answer
2k views

How to convert the Latex format to Mathematica input?

How to convert the Latex format to Mathematica input? For example, if I have a formula: $$ \sum_{m_{i}=0}^M\sum_{n_{j}=0}^N \frac{(z_{i}/2)^{m_{i}}(z_{j}/2)^{n_{j}}}{m!n!} $$ in terms of Latex ...
3
votes
1answer
337 views

Changing the style of In[]:= and Out[]= and font of input and output cells

Just upgraded from V9 to V11 and the style for the cell labels In[xx]:= and Out[xx]= has changed. In addition, the default font for inputs and outputs have also changed. For continuity reasons, I ...
0
votes
1answer
103 views

How can I enter commands in plain text in Mathematica11? [closed]

I tried to type $Pi * 9 ^ 2$ and hit Shift+Enter. Nothing happened other than a ding sound. How can I enter commands in plain text in Mathematica11?
0
votes
1answer
57 views

Is there any way to tell Mathematica NOT to simplify an expression?

I have this expression: Lx = (ℏ/I)*(-Sqrt[15/(8*π)])*(-Sin[ϕ]*(Cos[2*θ]*E^(I*ϕ)) - Cos[ϕ]*Cot[θ]*(I*Cos[θ]*Sin[θ]*E^(I*ϕ))) and I don't want Mathematica to do ...
3
votes
3answers
377 views

Shortcut to open Input Assistant

tl;dr the answer is F2 How can I re-open the Input Assistant after I've mistakenly closed it? E.g. Write the command Plotand ...
0
votes
1answer
73 views

“Input” function for when someone was born

I asked this earlier, but removed my post because I was able to create some more code for it. I am writing a program that asks a user for their birthdate in three separate steps, month, day and year, ...