# All Questions

50 views

### Which method to use for finding maximum without actually computing optimization function explicitly?

I am new to Mathematica and I am currently working on an optimization problem. The optimization function that I have easy to calculate for some assignment of variable but it is very difficult to ...
70 views

### Minimizing Multiple Functions

I'm trying to write a script that will minimize a given set of functions. The homework problem I've been given lists a set of dietary information, and I'm supposed to build the optimal salad based on ...
54 views

### Permutation with a condition [duplicate]

I need to create a set A={“a”, “b”, “c”, “d” “e”} and print all the permutations of the set with lenght 3 that satisfy the condition:element "a" has to be ahead of "c" and "d" has to occur atleas ...
58 views

### Problem using NDSolveValue

Good afternoon, fellas. Could anyone here help me solve this problem? ...
30 views

### Simplification with absolute value

I have a long expression that has absolute values in the exponent. Some parts of the expression would clearly simplify if one assumes that the power is an odd or even integer. When I give one of this ...
59 views

### How to shorten/simplify my plotting code

Is there a way to simplify and shorten my code? ...
87 views

### Plotting a numerical integration

I have the following code to calculate a numerical integral for any given a: ...
39 views

### InfiniteLine Woes [closed]

I am puzzled that the InfiniteLine below intersects with only one of the two points. ...
38 views

### Solve an integral equation: to fit the given data with an integral of two functions?

I am trying to find an efficient way to solve the following equation $$h\left(b\right)=\int_{0}^{b}f\left(\frac{b-c}{1-c}\right)\frac{g\left(c\right)}{1-c}dc$$ where for $h(b)$ I have the data ...
43 views

### How can I make rows into columns? [closed]

I want create new columns and rows from the following list of data using Mathematica: {{11, 12, 13}, {21, 22, 23}, {31, 32, 33}} I want the new for be like this: ...
156 views

### I want to construct a function than the output is “Sequence”

For example if the input is x and x<10 the output is Sequence[x,0],if x>10 the output is Sequence[0,x] but obviously ...
47 views

### Problem with plotting data (.csv)

I have a problem with plotting the data of a recent experiment. I'm quite new to Mathematica, but searched the documentation and forums without solving my issue. My data is stored in a .csv document, ...
60 views

### Module whose input is a function of 2 variables [on hold]

I need to make a Module whose input is a function of 2 variables and 2 variables m,n so i can make a Matrix with Array. Basicaly, I need this: ...
78 views

### Finding the numerical solution to a polynomial of a high degree [on hold]

I would like to numerically solve the following equation for ρ and use the obtained values of ρ to calculate the values of VR ...
69 views

### Plot ParametricNDSolve

I am trying to plot the probability of a molecule being in a certain state via the numerical solution of the Schrödinger's equation of molecule in an oscillating electric field (in a rotating system). ...
37 views

### How to find points of the external cut of a segment by a nonconvex polyhedron [on hold]

It gives me empty {} when I'm trying to Solve[..]. What's wrong? ...
87 views

### Equation solution using minimization

I have an equation F[x,y]=0. I need to plot y as a function of x. Due to the properties of ...
181 views

### Find exponential generating function from the first few terms

The function FindGeneratingFunction computes the ordinary generating function of a sequence, given a sufficient number of initial terms. I have two questions in ...
22 views

### To make a list from a For Loop [duplicate]

I have been working on a for loop and generating around 2500 integers from that. Now I am interested in calculating the Max or Min of those numbers. How to create the list of those numbers? So that ...
43 views

### Reordering numerically calculated eigenvalues assuming smooth dependence on a parameter

As was discussed in a different question here on SE (link) if you compute eigenvalues numerically of a matrix which depends on a parameter y, the resulting plot of ...
27 views

### Structure of the output of a DynamicModule [on hold]

I have a DynamicModule function which is used in a recursive function built with patterns. In order to understand how the recursive function works, I need to know ...
142 views

### How to eliminate variables when using Solve[]

In certain problems, we need to solve systems of equations and get results in terms of just selected variables. For example, how could we solve eqn==0 below for ...
64 views

### Are there any open source projects related to signal processing

I am going to make a program related to audio signal processing . Are there any open source projects related to it?
228 views

### Compiling a function that takes lots of optional arguments

I have a function that takes lots of optional arguments (basically some design parameters, about 10 of them) and performs some basic algebraic calculations involving complex numbers with the options. ...
41 views

### Multidimensional integration does not work

I am trying to solve an integral over Cubic Birillioun Zone, but after taking a long time Mathematica give nothing in return and just repeating the integral form, here is my integral, ...
43 views

### How to calculate frequency from waveform? [closed]

How to calculate frequency from waveform in mathematica??? Voltage waveform is shown below. ...
30 views

### How to draw a revolute joint and Prismatic joint? [closed]

and I want to add a bar on the surface of the blue cubiod so that I can move the joint with the bar. Also it's best to add a function code(a code to describe how it moves)
197 views

### Why is Block significantly faster than ReplaceAll for inputting variable values

Given that the documentation for FindMinimum uses ReplaceAll for its various examples of what to do with the found solution to ...
48 views

### How can I fit the parameters describing a given 3D object such that its projected shape best matches the silhouette observed from a given location?

[I'm reposing my previous question to make it clearer]. I have data which are the longitudes (l) and latitudes (b) for the vertices of the edges of a shape as it appears to an observer at a given ...
35 views

### Handling *.in and *.out files

im trying to use Mathematica in solving of algorithm tasks like this one: http://poj.org/problem?id=1274 When i was doing those in c/c++ i was able to easily pass input/output in Windows command line ...
57 views

### Optimizing orthogonal nonlinear regression code

I'm doing a simulation problem on the Langmuir adsorption model, where I need to obtain the model parameters from simulated data using the orthogonal nonlinear least-squares regression method. Here is ...
87 views

### How can I run a summation numerous times?

I have been working on code for finding the Allan plot of generated white noise, however, I cannot figure out a way to automate it for a different range of numbers. My code is as follows: ...
86 views

Suppose I have a quadratic polynomial in two variables x and y in which the squares with respect to ...
22 views

### Print to console bis

In the answer to this question, one explains how to use a function PrintToConsole[...] to print output to the console. My question: can you make a global definition that will automatically ...
16 views

### How to calculate whether a ray intersects an arbitrarily oriented bounding box? [migrated]

The bounding box is not axis-aligned. It can be rotated. I now have the origin of the ray, and direction and each coordinate of the eight vertices of the bounding box. what can I do to find out this ...
65 views

### Map an Argument to a list of functions

I want to "map" an argument to a list of functions. Here is the concrete Problem. I generate a list "Messungfit" of functions: ...
37 views

### Defining initial conditions [on hold]

how do I define the initial condition before solving a partial differential equation in order to compare the solution to that of a model?
88 views

### How to map over the corresponding elements of matrices [closed]

I'm working on some genetic algorithm code, and I'm seeking help to select the corresponding elements of a matrix in order to perform crossover on the chromosomes in population of individuals I want ...
80 views

### How to make a 3D plot using polar coordinates?

From the beginning: I have function $u(r)$ and radial symmetry in system. Also I've got results as data array ${u_i(r_i)}$. And I want to plot it as $u(x,y)$. Due to radial symmetry its gonna be like ...
43 views

### Find the numerator of 6/8 [duplicate]

The statement Numerator[6/8] evaluates to 3. Numerator[Hold[6/8] does not work. What function NewNumerator[6/8] evaluates to 6?
6 views

### How to find the mode when none of the terms repeat? [migrated]

What is the mode of a series / distribution of values when none of the values of the distribution are repeated , for example : What is the mode of 1 , 3 , 45, 67 , 89 , 100
60 views

### Plot x and y ErrorBars from file

If I have a set of data like this one saved in a txt file ...
109 views

### recurrence equation, result members don't contain the number 5 [closed]

print the first 5 members of the array a[n+1]=3*a[n]+7 which don't contain the number 5. a1=6. so a[2]=3*6+7=25, but 25 has the number 5 so we go to a[3]. a[3]=25*3+7=82 <--- this is OK... and ...
30 views

### Estimating fundamental matrix for stereo pair

I want to calculate fundamental matrix for stereo pair. Matlab has this function - estimateFundamentalMatrix. Is there an analog in Mathematica? If no how I can calculate it?
56 views

In Mathematica 10.0 and 10.1, according to the documentation of TransitiveReductionGraph: The transitive reduction h of a graph g is a graph that has the same ...
68 views

### What is the status of the FindMinimum method “QuadraticProgramming”?

As a method option to FindMinimum "QuadraticProgramming" is still a valid option. It has the advantage of being significantly ...
106 views

### How to convert a system of parametric equations?

I have a system of parametric equations (t is a parameter) ...
154 views

### When are numerical expressions identical

Very elementary: 2 + 3 == 5 evaluates to True and 5 == 5 evaluates to ...
I need to plot the partial function: $T_f(x)=\log 2+\sum_{k=1}^{\infty}\frac{(-1)^{k+1}}{2^kk}(x-2)^k$ for $n=2$,$n=4$ and $n=6$ on the same plot over the interval $[-\frac{1}{2},4]$ and also the ...
I am trying to solve a constrained optimization problem with an implicitly defined function $\pi$. The problem is non linear and of high order, so I use numerical methods instead. The code I use is: ...