As of May 31, 2023, we have updated our Code of Conduct.

# Questions tagged [functions]

Questions about the use of built-in Mathematica functions, including pure functions.

3,614 questions
Filter by
Sorted by
Tagged with
85 views

• 1,393
53 views

### Can someone please explain where I am going wrong in the given argument? Is it obvious that $f(m,s)>0$?

I have a two-variable function $f(m,s)$ for real $m>0$ and $s>0$, and as the first picture shows, it seems that it is always positive; on the other hand, I can easily find the minimum of $f(m,s)$...
• 327
36 views

### How to draw a function image within multiple interval definition domains? [duplicate]

Plot[x^3, {x, -1, 3 || 7, 10}] Note that the intervals of the function are separated. There are two intervals, (- 1,3) and (7,10)
• 1,581
44 views

### How to find the value range of a function with multiple intervals in the definition domain?

FunctionRange[(2 Sqrt[3] (k^2 + 1))/( 3 k^2 - 1), {k, k > 1/Sqrt[3], k < -1/Sqrt[3]}, y] The above function argument has two interval ranges k > 1/Sqrt[...
• 1,581
136 views

### Finding a suitable form factor for a given set of conditions

I have the following Mathematica code: ...
• 713
195 views

### Sorting a List Based on a Given Order

Suppose I have the following input: input={{1, 2, 3}, {-2, 4, 6}, {-1, 3, 6}} How can I sort it according to this list: ...
• 2,293
205 views

### Test whether an expression contains a particular pattern

How to test whether an expression contains a particular pattern ? I made a function for myself that tests whether an expression contains Plus or not. ...
• 3,859
1k views

### Can we explain why using Nothing twice on a list does not operate twice?

Below I generate a list of numbers between 1 and 15. I then set the value at position 10 to Nothing and as expected the value at position 10 is changed. This is as ...
• 15.7k
110 views

### Is it possible to obtain the symbolic expression for the maximum value of a function?

Is it possible to obtain the symbolic expression for the maximum value of out as a function of A,...
• 2,293
89 views

### Can I efficiently use a compiled function as an input to another compiled function?

I have a compiled function(such as $f\left(z,c\right)=z^2+c$) which will get replaced by different equations as the code runs. I'm using this compiled function(#1) inside another compiled function(#2)....
• 171
34 views

### Properly defining functions after they have been used in expressions [closed]

I am having trouble with how functions behave when defined, after they have been used in an expression. More specifically, I start with an expression of the form: ...
49 views

### How to modify the argument of a specific function below?

I would like to change the values of a and b in the following function: ...
• 232
65 views

### Is there any hope to compute analytically $y=f(x)$ for which $g(x,y)=0$?

I have a two-variable function $g(x,y)$ with $0<x\leq\frac{\pi}2$ and $\frac32<y<5$. I am looking for $y=f(x)$ for which $g(x,y)=0$. Using ContourPlot <...
• 1,159
55 views

### Functions for translating a vector from one coordinate system to another

I have a vector $\vec{H}$ with components in Cartesian coordinate system $(x,y,z)$: $\vec{H}=(0,0,H)$. I would like to obtain coordinate of this vector in Spherical coordinate system $(r,\theta,\phi)$....
• 1,393
1 vote
83 views

### Series from an integral and output as a function

I have a simple question, I am just stuck on syntax. I want to have a series of function $Z(\lambda)=\frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{\infty} d x e^{-\frac{x^2}{2 !}-\frac{\lambda}{4!} x^4}$ ...
144 views

### Precise control of fraction expression

It seems that expression for fraction differs when the number of terms in the numerator is more than 2. ...
• 3,859
230 views

### How to use Slater Type Orbitals as a basis functions in matrix method correctly?

This question is a continuation of my previous series of questions about basis functions. I would like to find the minimum energy of Coulomb potential motion using matrix method. \$H=-\frac{1}{2}\Delta-...
• 1,393
81 views

### Filtering out function pairs with domains lying on one side of an intersection point

I have a list of pairs of functions that intersect at one point, as shown in the image. I am attempting to remove pairs where the domain of both functions in the pair lie on one side of the ...
• 2,832
88 views

### How to extract the coefficients from a long exponential expression?

I have the given function: ...
• 561
133 views

### How to keep lines on boundary or inside a region?

This post is related to one of my previous posts. My goal is to keep only the lines that fall on the boundary (2, 8) or inside the region ...
• 2,832