# All Questions

26 views

### Storing Variables in “Loops” and Point Plotting

Given the function $y=\sin x$ defined over the region $-\pi \leq x \leq \pi$, I need to implement a "do loop" such that I sweep over 100 or so points $-1 \leq y \leq 1$ and find precisely the two $x$ ...
23 views

### The FindRoot output only with numbers [duplicate]

I have this code in Mathematica: FindRoot[{Sin[x - y + 2] - x == 0, Sin[2 x - z] - 8 z == 0, Sin[z + y + z] - 2 x == 0}, {{x, 0}, {y, 0}, {z, 0}}] where it's ...
20 views

### How do I make a RNG in a function run only when I call the function? [on hold]

In Mathematica, I've made the following function: ...
35 views

### Defining a derivative on a custom function

I am trying to define a derivative that acts on a custom function, $f$, such that when it acts, it increments one of the arguments of by 1. f is not defined; I just want to use it to keep track of ...
56 views

### Find position avoiding For loop

I have a list: {a,b,c,d,e,f} And a function sizeFunc[element_] which returns the size ...
34 views

### How does Dataset compare to DataFrame in pandas?

Pandas is a Python package providing fast, flexible, and expressive data structures designed to make working with “relational” or “labeled” data. Just like ...
24 views

### NumberLinePlot: How to make the 3rd list (c) appears with “black crosses” or “void circles”?

a = {1, 2, 5, 2} b = {2} c = {1.75, 2.88, 3.25} NumberLinePlot[{a, b, c}, PlotStyle -> Directive[PointSize[0.032]]] I thought about PlotMarkers or PlotStyle, ...
52 views

### Plotting a function with implicitly defined variable

I have a question about plotting a function with an implicitly defined variable. I think the solution should be something similar like here: Define a function with variables linked implicitly but I ...
32 views

### Plotting function in cylindrical coordinates (r,theta,z) [duplicate]

I have a function of two variables (r,theta), and I would like to plot it as a surface using cylindrical coordinates. Based on my research, there is no built mathematica function for plotting ...
6 views

### Can these steps be converted to a mathematical expression using equations/graph theory/Calculus/Set theory/functions/? [migrated]

Want to convert below algorithm into a mathematical model:- General points 1. Let there be a Connected Directed Graph. G = (V, E) V vertices or nodes E edges. This graph can be seen as a network ...
35 views

### Dropping rational coefficients

I have a list of expressions (they all are exact numeric quantities, not containing any variables), some of them have integer or rationals coefficients, or complex coefficients with rational or ...
55 views

### Trouble simplifying using Replace

I have the following expression: w.a.b.r+w.c.d.r I want to get: w.(a.b+c.d).r So far I used ReplaceRepeated: ...
40 views

26 views

### How do I assign the solutions of an equation to separate variables? [duplicate]

I'm a beginner to Mathematica. Here's my question. I'd like to store the output(s) of a Solve command to variable(s) that can be manipulated later. For example, I would like x1 and x2 to be the two ...
54 views

### Memory Management for Large Datasets [on hold]

I've written some Mathematica code to generate polynomial roots. The code take an argument n as the highest degree of polynomial to solve for and then exports a file containing a list of the roots: ...
52 views

### Difference between the CLI and the GUI version of Mathematica

I have been trying to find out how much faster Mathematica is in CLI than in GUI, and with lack of success in finding any information about it, I decided to crowdsource my quest for this piece of ...
39 views

### I have a 8 Dials on a device. How many combinations and permutations are there? [on hold]

I have a real world device with 8 Dials. Each dial can only be set to only one position. The dials are labeled as A B C D E F G and H. The dials can be set as follows: A has 1-4 settings. B has 1-4 ...