# Questions tagged [parameters]

The tag has no usage guidance.

102 questions
Filter by
Sorted by
Tagged with
125 views

### How do #1 and #2 work in a function defined by 2 variables?

Can someone please explain the function of #1 and #2 in a pure random function of two variables? For example, if I had something ...
• 673
85 views

### Elegant way with minimal redundancy for handling function parameters and starting values when plotting and fitting

The following code shows how I handle making up a function, finding starting values, fitting and plotting. You see that handling the parameter names, starting values, plotting values is highly ...
• 167
1 vote
54 views

### Solving and plotting roots of a non polynomial equation with parameters

In Mathematica 12, I want to find the roots r of this equation in terms of the parameters M and Q, then plot r versus Q for some values of M. ...
73 views

### Expression as parameter to function that evaluates it, best way to do it?

I need a function fSum that computes the angular sum for some expression, like this: fSum[3 Sin[2 x], 0, 2 π] Or from a predefined function, like this: f[x] = 2 Sin[3 x]; fSum[f, 0, 2 π] Or plots it ...
• 101
62 views

• 101
416 views

### How to plot a surface given implicitly by 3 equations in 5 coordinate variables?

I have 3 implicit equations in 5 variables: $f_1(S, y_h, y_d, x_h, J)=0$, $f_2(S, y_h, y_d, x_h, J)=0$, and $f_3(S, y_h, y_d, x_h, J)=0$. These equations determine a 3D surface in $S-y_h-y_d$ ...
1 vote
63 views

### Problems with Solve. Only works for specific parameters. Solve function do not "start"

I have the following problem I want to solve the following equalities. My used code: ...
• 13
88 views

### Find the condition under which an inequality is satisfied

I need to find the conditions among the variables under which the inequality est-tru>0 holds. ...
• 496
84 views

### How can I calculate P-Value for a custom distribution?

I used DistributionFitTest but it works only with a defined distribution. This is the distribution that I used: ...
• 59
149 views

### SIR Parameter Estimation in Mathematica

All infected individuals go through an incubation period, which lasts on average for 4 days. During this time, individuals are not infectious, nor do they have any excess mortality risk. All infected ...
137 views

...
150 views

### Optimize parameters for differential equations

I have differential equations f11, f12, f21, and f22 with respect to t with parameters A and B. I've defined and solved these equations using NDSolve in Mathematica as follows: ...
• 1,830
162 views

### How to define function that returns another function?

I'm new to Mathematica and I have an issue: I'm trying to define a function that accepts as parameter another function with parameter X and then returns a function also with parameter X. Input: ...
• 43
1 vote
153 views

### How to check whether a function parameter is another function?

How can I check if a function parameter is another function defined with := f[n_] := n^2+1 g[fun_, n_] := fun[n] g[f, 3]
163 views

### Solve computes discontinuous eigenvalues of parameter-dependent matrix

So I have a family of unitary matrices $m(x,y)$, which depend on two parameters $x,y \in [0, 2 \pi)$. Its eigenvalues should be continuous in $(x,y)$. Since $m(x,y)$ is a unitary matrix, its ...
• 103
1 vote
36 views

### PlotLegends parameter with subscript and multiple of other parameter in Mathematica

PlotLegends -> LineLegend[{Style[Subscript[ω, i] t == 0, Black]] When I use this command in Mathematica 13.2, I get ...
91 views

### Is there a function which checks the validity of a string to be used as argument to RegularExpression?

Is there a function which checks the validity of a string to be used as argument to RegularExpression? Composing regular expressions is not an easy task. In ...
• 2,848
47 views

### How to attribute the right encoding for PointValuePlot

in the following program ...
• 421
1 vote
72 views

### How can I write a function definition which gets another function as parameter whether the parameters of the function match a pattern?

One can write functions which depend on the type of actual parameter before they are actually called. E.g.: ...
• 2,848
1 vote
37 views

...
• 177
219 views

### Plotting an inequality over the range of a parameter

I have a simple inequality, $$x+\cos(\theta)\, y > 0$$ and I'd like to plot the region in $x,y$ space which satisfies this inequality for all values of the angle $\theta$. I'm trying to do this ...
• 43
33 views

### Defining parameter as function without losing properties of the derivative

I have built a code that is later on solved dynamically depending on values I set using Manipulate while plotting. However, I came across a problem I cannot resolve. So, I defined ...
1 vote
59 views

### Calculating eigenvalues and solving inequalities with parameters

I would like to calculate b in terms of c and a, in order to satisfy the following conditions: ...
• 11
46 views

...
• 45
81 views

### ParametricNDSolve with 2 parameters displays unexpected behavior, crosschecked with 1-parametric version of the same system

I apologize in advance for posting some lengthy code, I tried to tackle this with a simplified question yesterday here but once I implemented the suggested answer by @march deeper issues arose. I am ...
1 vote
68 views

### Using NSolve after ParametricNDSolve to find the value of one parameter over a range of values of the other parameter and at a specific time

I am new to Mathematica, so excuse me if this is trivial. I could not find anything similar by browsing questions or the wiki. I am working with a long set of ODEs but currently my problem can be ...
1 vote
78 views

### NestWhile question, ensuring a function is repeatedly applied to a newly set input-value

Problem: I need to ensure that a function which is repeatedly called in NestWhile correctly uses a newly computed input on its next call. I will give the context while omitting parts of the code (...
• 1,698
197 views

...
• 8,629
46 views

### find maximum don't work with me i don' know why? [closed]

i have log function like this and i want to find maximum for it the log function like this ...
• 369
1 vote