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

learn more… | top users | synonyms

2
votes
4answers
261 views

Use Mathematica to calculate the area enclosed between two curves

use mathematica Hence, calculate the exact area enclosed by these curves using Mathematica. $f(x)=x^3$ and $g(x)=x^5 - 2 x^3 - 3 x$ i have got the graph...now I'm stuck with finding the area
-4
votes
1answer
45 views

Finding minimum value of an integrated function over an interval [on hold]

I am novice user of Mathematica and I am stuck with this question. I have to find the minimum value for this expression. where x[1,3]. I figure that to find the minimum I just need to ...
9
votes
4answers
408 views

Set of integers not divisible by smaller set of primes

Let $p_n$ be the sequence of prime numbers, and $s(x,n)=$ the set of integers less or equal than $x$ that are not divisible by $p_1,\dots,p_n.$ I can define it as follows: ...
1
vote
1answer
71 views
-2
votes
0answers
32 views

“There are no symbols matching \”\!\(\“Global`*\”\)\“” [on hold]

"There are no symbols matching \"!(\"Global`*\")\"" what's the probleme with this error and how to solve it?
0
votes
0answers
76 views

Simulation of Circular plate vibrations

I'm trying to simulate the vibration of a circular plate with a free edge. The plate wave equation describes the vertical displacement of the middle surface of the plate $(\zeta)$ as a function of ...
7
votes
5answers
299 views

What is my problem with MeshFunction?

I want plot the max value in a sine plot. We can use the following code ...
10
votes
4answers
878 views

How do I plot Thomae's function in Mathematica?

I wanted to plot this function $$f(x) =\begin{cases} 1 & \text{if } x= 0 \\ \tfrac1{q} & \text{if } x = \tfrac{p}{q}\\ 0 & \text{if } x \in \mathbb{R}-\mathbb{Q} ...
0
votes
0answers
77 views

plot $f(x)$ against $\frac{1}{x}$ [closed]

Hi guys this is really a simple question: if i have $f(x)$ how do i plot this function in mathematica against, for example, $\frac{1}{x}$? thanks in advance
8
votes
2answers
534 views

Can you apply the Cellular Automata function to a grid containing numbers?

Im attempting to simulate a simple evacuation model using cellular automata theory.My study aims to determine whether Cellular Automata can effectively represent how people would behave in a fire ...
4
votes
4answers
216 views

implement the ZOH in mathematica [closed]

well I'm trying to implement the ZOH in Mathematica, but I can't. Take a look, this is my script: ...
16
votes
5answers
5k views

How to find the domain and range of a function with Mathematica?

I'm studying calculus and in some exercises I am asked to find the domain and range of a function. Does Mathematica have already a built-in function for this? I can imagine some ways of doing so, ...
0
votes
0answers
40 views

Simplifying Products In Mathematica [closed]

I have, amoungst many others, the function: Kbox[n_, r_] = ((n - r)*r)!/ Product[Product[(r - i + 1) + (n - r - j + 1) - 1, {i, 1, r}], {j, 1, n - r}] ...
4
votes
1answer
99 views
1
vote
1answer
87 views

Horizontally compress a picture with varying compression ratio [closed]

I have a function c[x] whose domain and range are both [0,1]. And I have a picture with width W, height ...
2
votes
3answers
206 views

How can I get the function of a plotted trajectory? [closed]

I solved two ODEs, which are a function of t, numerically. The first ODE is the vertical equation of motion and the second one is the horizontal equation of that ...
1
vote
2answers
54 views

How to use the output we see of expression when this expression is inside Dynamic

Consider this example: Manipulate[status = Dynamic[If[a < b, Yes, No]], {a, 2}, {b, 5}] The output of this calculation is ...
1
vote
1answer
73 views

Attaching functions to movable locators

I'm trying to create a manipulate plot showing the electric field due to a collection of point charges. At the moment I've created such a plot which allows the x and y positions of each charge to be ...
10
votes
2answers
205 views

Why isn't Lookup treated like other symbols?

With Mathematica 10, I wanted to overload Lookup using TagSetDelayed, but it doesn't work. For instance, if I define two objects ...
10
votes
6answers
672 views

Will Version 9 functions all work in Version 10?

Having developed a substantial code base in Mathematica 9, leads me to ask these important questions prior to downloading and installing Mathematica 10. Will any Mathematica functions from the ...
21
votes
2answers
434 views

Why is Query so much slower than Part?

Time for another of these(1),(2) as yet another new-in-10 function appears to have poor performance compared to older alternatives. This time: Query appears to be ...
5
votes
3answers
216 views

Solving $L=\frac{3}{2} \sqrt{4 \pi ^2 A^2+W^2}-\frac{\sqrt{5 W \sqrt{4 \pi ^2 A^2+W^2}+6 \pi ^2 A^2+3 W^2}}{\sqrt{2}}+\frac{3 W}{2}$ for $W$

When I solve the aforementioned equation for $W$ or $A$ on Mathematica I get a long and ugly equation in return, namely one of the solutions for $W$ is: (attempt to read at your own health) ...
1
vote
1answer
144 views

How to apply a tensor to a list of arguments

The problem I have is the following: Let C be a list of coordinates, say, C = {x1, x2, ..., xn} and ...
6
votes
1answer
92 views

How to sort the functions in a Package?

Once a Package like abc` has been installed, we can use "?abc`*" to scan all the functions defined in this Package. Now I ...
2
votes
1answer
109 views

RegionPlot3D run forever when plotting 3D ParametricRegion

when working with 2D, RegionPlot works fine with ParametricRegion as can be seen in this example: ...
3
votes
2answers
313 views

How to plot several functions without jumping? (multiple eigenvalues of a system as functions of 2 parameters)

I've been working on this research problem for months with some success by no global/proper solution to the problem. So I have square, Hermitian matrices of various sizes ($8,20,38$ dimensions) with ...
0
votes
2answers
79 views

Collapsing summation

I am trying to write a command to collapse the sum of terms into an expression with summation. Something like ...
1
vote
2answers
69 views

How to define logical expressions for platonic solids?

A more general question would be: How to find logical expressions for 3D-objects described by closed polygon sets? Finally a simple question is more prolific, therefore: How to define logical ...
3
votes
5answers
238 views

How to add periodicity to condition?

Is it possible to set the following function f[a], where a can be any real number? $$ f(\alpha) = \begin{cases} 1 ...
0
votes
2answers
216 views

$RecursionLimit::reclim: Recursion problem

Please, find bellow my original question. Here is all my code: ...
2
votes
1answer
84 views

Define PolyLog so that positive reals evaluate on upper edge of branch cut

Generalizing the previous question: Define Log so that negative reals evaluate on lower edge of branch For real positive values $x>1$, Mathematica's polylogarithm function ...
2
votes
1answer
166 views

Finding average error of the data

Considering I have some data, and I want to fit the data to a linear fit and find the average error from the linear fit, how can I do that using Mathematica? I have ...
0
votes
0answers
24 views

How to prevent function from substituting the part of the parameter name if it has a subscript? [duplicate]

I have the following problem, when defining and using a function, that's supposed to have an outside parameter xmin: A[x_] := Exp[-x/Subscript[x, min]] A[5] ...
-2
votes
1answer
43 views

Compile Determinant [closed]

I would like to determine the determinant of a 4x4 matrix with the entries a[i,j] being functions of $i$ and $j$. I used Compile with code: ...
5
votes
1answer
175 views

How can I make a “self-referential” replacement operation self-contained?

Fairly often I find use for replacement rules that call themselves on the right-hand side of the rule, e.g.: ...
1
vote
0answers
61 views

How do I choose only one branch of ArcTan?

I have a problem concerning ArcTan drawing a graph using ListPlot. I import a table of data: ...
2
votes
0answers
31 views

Evaluating standard functions of general quaternions symbolically

Mathematica can easily compute exponentials and logarithms of concrete quaternions: ...
2
votes
1answer
94 views

How to explain the behavior of Rule inside these functions [duplicate]

I'm trying to define a function that takes an expression and spits out a pure function involving a replacement rule of that function's variable. An example would be a function ...
0
votes
0answers
24 views

Use FindRoot solution as number in function [duplicate]

I would like to save a number that I gain with FindRoot so that I can use it in another function. I tried: ...
0
votes
0answers
9 views

on characterization of a riesz homomorphism on C(X) spase [migrated]

what is proof that:Let K be an arbitrary topological space and π : C(K) −→ R be a map with π(1) = 1. if π is a algebra homomorphism then it is an Riesz homomorphism.
-1
votes
1answer
70 views

Find minimum function value in data and give coordinates of minimum

I create with Table an array containing the function value of some function and the n1and ...
1
vote
1answer
54 views

Remove curly brackets _completely_ to map a function to the elements of a list [duplicate]

Most list manipulations can be done with Flatten, Partition and Take. I didn't managed to ...
0
votes
0answers
13 views

how to get Gamma function in Mathematica using Matlab [migrated]

In Mathematica, Gamma[a, z] refers to the upper incomplete Gamma function whereas in MATLAB, gammainc(z, a) refers to the regularized lower incomplete Gamma function. I want to know how can obtain the ...
1
vote
1answer
117 views

Finding the minimum of a function

I asked this question Mark Minimum Value in DensityPlot. Another question has come up, or better said, a task: Find the minimum of a function. I haven't been able to write the needed code for that, ...
0
votes
0answers
12 views

For nonempty sets A and B and functions f: A-> B and g: B-> A, suppose that g of f = i_A. Prove that if f is onto, then g is one-to-one [migrated]

Here is what I started, I don't think it's correct. Suppose f is onto, so then there exists an element b in B s.t. for all a that is an element of A, f(a)=b. (definition of onto). Let y,z be any ...
2
votes
1answer
56 views

How to create a numerically “equal” function?

A simple example about what I need to do. For example, I have three functions: t1[x,t] t2[x,t] t3[x,t] and, ...
2
votes
0answers
41 views

Maximizing Large Multivariable Function over Region with Parameter Constraints

Brand new Mathematica user here. I have a complicated function to maximize, and thought I would try software like Mathematica instead of taking derivatives by hand. I found some Mathematica ...
6
votes
3answers
287 views

Does Mathematica have Month Range and Day range?

It is known that CharacterRange["a", "z"] gives list of characters from a to z. Does Mathematica have something similar for weekdays and months of the year? ...
18
votes
4answers
599 views

Accessing list elements by name

First, a bit of a long introduction to my problem: I only have a few weeks of Mathematica experience. I am creating a mathematica application that calculates some material properties of steel based ...
5
votes
1answer
70 views