# Questions tagged [functions]

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

2,815 questions
Filter by
Sorted by
Tagged with
108 views

### Cut part from function

I try implement cutting some ease function. I have one ease function ease(x) where x (0,1) and result (0,1). I can not ...
25 views

### Function isn't adding the 2 matrix [closed]

Having an issue where my function rotMatfromVec won't add the 2 Matrices at the end. It takes in 2 inputs, R and theta, where R is a unit vector. ...
23 views

### How to efficiently store the result of a function [duplicate]

Consider the following code: f[x_]:= SomeCodeAbout[x] g[x_]:= f[x] It links g with f, ...
48 views

### Optimizing a parameter space search

This is related to my previous question: Solve for parameters so that a relation is always satisfied The Problem I am searching the parameter space of a large (many terms) function to find where the ...
173 views

### Solve for parameters so that a relation is always satisfied

Let's say I have a function parameterized by a number of variables. As a simple example $$F(x,y) = ax^2 +by^2-cxy+1$$ I want to find some set of values (doesn't really matter what they are) for the ...
173 views

### How can I check if one expression implies another?

Say I have one expression, for example $x^3-3 + c = y$, and I want to check if it implies another with some set of explicitly stated assumptions. With the previous example, assuming all variables are ...
343 views

### How to use pipe operator in Mathematica?

t = Table[i1 + i2 i3, {i1, 2}, {i2, 3}, {i3, 2}] ArrayDepth[t] How to use "pipe operator" in Mathematica Version 11.0? In R, with library ...
48 views

...
13 views

### Can't plot derivative of Hankel function [duplicate]

I am trying to plot the first derivative of $H^{(1)}_3 (ix)$ with respect to its argument $ix$, where $H^{(1)}_3 (ix)$ is the Hankel function of the first kind with order $3$, $x \in \mathbb{R}$ is a ...
60 views

### Trying to plot a chord with tangential labels

I'm brand new to Mathematica and trying to figure it out, my task is to create a chord with labels on each end (currently using a small section of the sine curve). Currently I've just got ...
56 views

### Print function value at specified coordinate

Below is the code to evaluate the function. I am trying to print the function values at a specified coordinate as shown in ActCoor. ...
38 views

### How to collect results from compiled function in ParallelEvaluate?

I am using Mathematica 12.x and have a compiled function, returning many things. I would like to run several instances of this compiled function, one for each core of my CPU, and then collect all of ...
1k views

### How to get exact coordinate of a point from a plot?

I am using BodePlot[] to plot the magnitude and phase of a function as below. BodePlot[1000/((1 + s/10^3)*(1 + s/10^6))] ...
169 views

### Finding periodic cycles of a function

Given a function f[{x,y}] it is rather simple to use, for example, NSolve to find periodic points of period $n$. We simply take ...
181 views

### Elliptical Integration

I have an integral which can be decomposed into three complete elliptical integrals. I want to know the method by which I can achieve this. The integration is the following: (4 (-1 + y)^2)/(c Sqrt[y (-...
91 views

### Finding multiple local minimum

I have the following code: ...
54 views

### Is there a way to use identities in Mathematica efficiently? [duplicate]

Imagine I have defined a variable l=p/(a*b) Let's say I perform some operations, and I get the final answer to be p/a. But all I ...
53 views

### Change Replace Rule with Function Input

I am trying to create a function that takes in an input $\mu$ and place that input into the replace rule for a numerical integration, as seen in the code below: ...
38 views

### Another nesting question

I have a function F[i_Integer,B_List,l_list] which spits out a list {B',l'} where B' and <...
88 views

### Printing Values Within a Function

Below is a function to calculate the overlap between two gaussian functions. ...
17 views

### Assumptions with piecewise problem?

I am trying to apply the assumpion of 0<s<1 throughout the calculation however the piecewise condition does not accept it automatically. Is there any way to avoid the manual choice of x>0. ...
76 views

### How to flip the function f(x) about y-axis

Suppose I have a function W(x). I wanted to flip (reflect) this function about the y-axis. I tried plotting W(-x) but it is not ...
31 views

### I want to maximise my function over a particular domain

I have tried NMaximise. But I am getting an error always. Even if my command is correct. My function is Cos[Ļ E^x] and I want to maximise it over the range (-3,3)
61 views

### Compute the length of each string in a set [closed]

Say I have done some computation, and it gives me the following set of string: ...
67 views

### Composition of Maps

I want to create a composition of several lists. For example: ...
35 views

### Using FullSimplify to simplify an expression with assumptions

I am working with Poisson brackets of Angular momentum, and I want Mathematica to be able to return the angular momentum function if the Poisson bracket yields that result. I.e. provided ...
29 views

### How to conveniently evaluate a function at several points when there are way too many points

Say I define a function as follows: pos[n_] := If[Cos[288 ((n Pi)/233)] > 0 && Sin[288 ((n Pi)/233)] > 0, 1, 0] Then I want to evaluate at this ...
254 views

### Find maximum of the output from reduce

I am trying to reduce a function in two variables($n_1$ and $n_2$) whose domain is the set of Integers. I get a long list of pairs of values for these two variables(instead of a range). This could be ...