Skip to main content

Questions tagged [functions]

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

0 votes
0 answers
53 views

Numerator function doesn't work [closed]

s=E^(-t)/Sqrt[2] Numerator[s] The result is 1, rather than E^(-t) as I expect. How to get E^(-t)?
D W's user avatar
  • 33
0 votes
1 answer
48 views

Transforming symbolic expression to a function

I have the following symbolic expression: ZZ = \[Delta] + 4*\[Pi]*Z - log[\[Delta]] I'm trying to define a new function ...
ValientProcess's user avatar
2 votes
1 answer
167 views

JordanDecomposition gives out different answers on symbolic and numerical calculations

Numerical substitution before or after performing the JordanDecomposition yields different results. Here is the source code to reproduce the error: ...
Yu-Sen Zhou's user avatar
2 votes
3 answers
200 views

Trouble with branch cuts plotting a real function

When I plot the following function ...
Axionlike particles's user avatar
3 votes
1 answer
76 views

Replacing d[r]/dt by 0 in expression

The purpose is to recognize d[r]/dt in the expression below, and to make the expression zero. It seems impossible because there is no Time[Power[dt,-1],d[r]] in the expression at the left hand side in ...
Soon's user avatar
  • 734
9 votes
2 answers
117 views

How can I return an empty list from FunctionCompile?

The following code is for solving a linear congruence of the form $ax=b \; (\mathrm{mod}\ m)$ using FunctionCompile. ...
ngc5139's user avatar
  • 187
1 vote
3 answers
68 views

How to only evaluate this function in the new variables after the derivative has been taken?

I have the following situation. I will first post the code and then explain what I'm trying to do and what is going wrong ...
user1620696's user avatar
5 votes
6 answers
672 views

How to efficiently select elements with the minimum value from a large list?

How can I efficiently select sublists with the minimum value of the third elmement from the following list? ...
internet's user avatar
  • 873
0 votes
1 answer
91 views

Properties of the Function f ( x ) = x − { x } : A Mathematical Analysis

Given the definition: If $m-\frac{1}{2}<x≤m+\frac{1}{2}$ (where m is an integer), then m is called the nearest integer to the real number x, denoted as {x}, that is, {x}=m. Among the following four ...
csn899's user avatar
  • 1
0 votes
0 answers
88 views

Problem with Length command

I am using the Length[] for counting number of additive terms. It works fine but when I have the following type of terms ...
Tanmoy Pati's user avatar
-3 votes
0 answers
62 views

Double Variable Function

Suppose we have a function let's say F(w, T) with w and T taking values from the lists T_list=[...], w_list[...] respectively. I want to calculate F(w, T) for EACH value of T in the T_list while w ...
Ioannis Polopetrakis's user avatar
0 votes
1 answer
60 views

Computing an exact range with FunctionRange

When using FunctionRange to compute the range of the two-argument ArcTan function, Mathematica fails to return an exact answer. ...
Glenn Welch's user avatar
5 votes
0 answers
163 views

Hypergeometric Function Integration Using Mellin-Barnes Representation

I have the following integral: $$ I=\int_0^1 d \alpha d \beta d \gamma r(\gamma) s(\alpha, \beta) T(\alpha, \beta, \gamma) $$ where I define $$r(\gamma)=(\gamma(1-\gamma))^{ -1 / 2+\epsilon / 2}$$ and,...
Everlin Martins's user avatar
3 votes
0 answers
61 views

Return and Function [duplicate]

Can somebody explain the behavior of Return inside a function? I know that Function and If ...
Daniel Huber's user avatar
  • 55.7k
2 votes
2 answers
61 views

How to implement a Lie bracket in Mathematica by specifying its properties and action on generators?

I want to implement a Lie bracket operation in Mathematica and don't know exactly how to do it. What I want is something like: I prescribe a set of generators L[m] ...
user1620696's user avatar

15 30 50 per page
1
2 3 4 5
258