All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
14 views

Plot defined function several times

I want to plot the partial Fourier series of a function. I have this: ...
0
votes
0answers
6 views

Hold `outermost layer` of expression

In pursuit of a function to force unsimplified fractions forceden[x_,d_]:=Hold[Evaluate[Numerator[x]d/Denominator@x]/d]; There are many related functions (...
0
votes
0answers
6 views

Opposite of “Extend Selection?”

I am trying to become more proficient with Mathematica shortcuts. To avoid using the mouse when folding a section, I am using Extend Selection CTRL+.. I press that ...
0
votes
0answers
30 views

Fast definition of sparse tensor

I'm defining a sparse array through ...
2
votes
1answer
33 views

How to add a keyboard shortcut to open a Palette

I would like to add a hotkey or keyboard shortcut to open a Mathematica Palettte, like e.g. the Basic Math Assistant. I found a ...
1
vote
1answer
39 views

Is there a way to add graphics to Show and keep the image “still”? [closed]

Let's say I'm writing a PDF presentation such that on slide 1, I want to show a sphere, and on slide 2 I want to continue showing the same sphere plus a point. I could draw these in Mathematica using <...
1
vote
2answers
35 views

Approaches to expression reduction

I am still learning how to use Mathematica more efficiently, but something that I keep bumping into is problems with it reducing formulas. Often, I'll ask it to compute a certain formula (take a ...
0
votes
0answers
8 views

I want an operation that keeps digits in order and result in a year number [migrated]

I remember a math teacher wishing us a good year with a mail title that was something like: 101 = (1 + 2 + 3)* 4 - 5*(6 - 7) + 8*9 Except the result was 2006. Is there a website that can find a number ...
0
votes
0answers
15 views

Is 8 a closed graph? [migrated]

As i say,is the number 8 a closed graph? And there are still a lot graphs partial the same feature.So,i just want to make clear the exact define of closed graph.
1
vote
2answers
59 views

Computing the sign of an expression

Can you please help with the following. I would like to compute the sign of an expression: ...
0
votes
0answers
50 views

How can I solve a system of PDEs with constraints but having unknown boundary conditions

I have a 1st order system of two PDEs with two independent variables and two dependent variables. ...
0
votes
0answers
10 views
0
votes
0answers
30 views

How to express sum of rational functions as a single term [closed]

I have rational functions $\dfrac{q_1(x)}{p_1(x)},\ldots,\dfrac{q_n(x)}{p_n(x)}$ whose numerator I am trying to compute. I want mathematica to take the lcm of $p_1(x),\ldots,p_n(x)$ and express the ...
0
votes
1answer
84 views

Solving an equation with Reduce

In the equation shown in the code that follows, I must find or eliminate rb, but Mathematica is reluctant to work with my Reduce ...
1
vote
1answer
43 views

Export Vectorized Images

I read the answered question here which was for 7 years ago. I want to use DensityPlot3D function to draw a figure and save it as eps, pdf, or SVG as a vectorized ...
5
votes
1answer
51 views

Context Manipulation within Scoping Constructs

In the following the full context form of Test is not required as "Aaa`" is added to ...
1
vote
0answers
24 views

Problem initializing xTensor package

I am using Mathematica 12.2 on Windows 10 and I am using the xTensor package for my tensor calculations. However, since today, I cannot run the xTensor package. I get the following error. Can anybody ...
0
votes
0answers
29 views

Pattern matching a monomial in n variables [closed]

I have monomials in the form $x \prod_{i=1}^n a_i^{y_i}$, and I want to return $\{x, \{y_1, ... ,y_n\}\}$. I'm hoping to have a pattern which would match a monomial of this form so I can return the $x$...
0
votes
1answer
45 views

FindMaximum showing unexpected behaviour (bug?)

I am using FindMaximum to find the maxima and maximum value of a simple function $\sqrt{3-x^2}$ as follows: ...
0
votes
0answers
34 views

What's the best way of setting global defaults for my Plots?

Obviously there are many ways to change the global settings, such as $PlotTheme or SetOptions[], but what I'm looking for is a ...
6
votes
1answer
222 views

why do these two Meijer G functions not cancel each other?

I encountered such expressions in Mathematica MeijerG[{{ }, {1, c + 1/2}}, {{0, c, c, c}, { }}, 1] + MeijerG[{{1}, {c + 1/2}}, {{c, c, c}, {0}}, 1] which in ...
2
votes
3answers
97 views

How can I interpolate time-series data?

I fetch financial data like this: data = FinancialData["SBUX", "Close", {{2013, 1, 1}, {2013, 8, 1}, "Week"}, "Value"]; ...
4
votes
1answer
53 views

Can a LatticeData image show more than a unit cell? [closed]

I have an interactive code for showing the crystallographic in Mathematica. ...
-4
votes
0answers
23 views

Double angular integration in D dimensions and Hypergeometric functions [closed]

I am currently in Ph.D and trying to work out some calculations in HTLpt (Hard Thermal Loop perturbative theory) which involves a lots of nasty integrals. Especially, the one I am currently trying to ...
-1
votes
1answer
62 views

How to make NSolve faster?

Can somebody help me, to make these program faster? u and r are parameters, a,b,c,d,q,w,Ca are variables. I need to numerical solve these system for many values of u and r. And it take 10 seconds for ...
3
votes
2answers
103 views

How to make columns different colors in an ArrayPlot?

Consider an ArrayPlot of some arbitrary matrix with values between zero and one. ...
0
votes
1answer
55 views

Evaluation points following a bivariate Gaussian distribution [closed]

I have a function of two variables, say $f(a, b)$, which I want to evaluate (and later average) in the neighborhood of $a=0$ and $b=0$, with density of points around $(a,\,b)$ following a Gaussian ...
3
votes
2answers
60 views

Levin Rule Integrate Power of Oscillating Function

I want to numerically integrate a function of the form: ...
3
votes
1answer
96 views

Is there a good reason that there is no UnIconize?

Consider the following: tmpExpr = {1 a, 2 a, 3 a, 4 a} (*here a proxy for possibly a very long list*); tmpIcon = Iconize[tmp, "my list"] I think it would ...
11
votes
8answers
367 views

list-array construction

I want to create the list ix={1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4} I can do ...
5
votes
1answer
80 views

Visualizing directories--a cleaner view of a helpful older post

I am looking to make graphics of a folder hierarchy, and this old post was very helpful. However, this method gives the whole file path for each node, which makes a complete mess in the directory I ...
3
votes
1answer
48 views

Is it possible to have two labels for an axis using Show function?

I use this code ...
5
votes
2answers
152 views

How to ask to attach the plots vertically in the given code?

I use this code ...
0
votes
2answers
47 views

How to draw with ErrorBarLogPlots

I want to draw those data with ErrorBar and the Y-axis must be in Log scale ...
0
votes
0answers
40 views

Normalizing x-axis to some parameter

I have the following code ...
2
votes
1answer
129 views

How do I draw a conformal mapping from the z-plane to the w-plane

I am total beginner in Mathematica. Don't know a thing. I need to draw some diagrams for showing the conformal nature of map $w=e^z$. I need to draw some contours in $z$-plane; e.g., horizontal line, ...
1
vote
1answer
31 views

Strange behaviour of SubValues of a definition in a context

First we define a context: Begin["Ctx`"]; ClearAll[f]; f[m_][n_] := n // (Range /* Append[m]); End[]; We can check that ...
0
votes
0answers
55 views

How to manipulate multiple solutions to equations while keeping variable names?

relatively new to Mathematica, but couldn't find an answer online for how to do this more cleanly. I am solving these equations in six variables that give me a number of solutions, which are given as ...
0
votes
1answer
36 views

How to plot Log(P(x)) in a histogram?

I have been using SmoothHistogram to plot the probability density function $P(x)$ of some experimental data. On the y-axis, I would like to have $\log(P(x))$ ...
6
votes
2answers
72 views

Why does NMinimize not follow MaxIterations?

...
1
vote
1answer
45 views

ListPointPlot3D Function for DateObject

i was looking for a plot function which displays as function of Time/dates 2 series of different data, something like a ListPointPlot3D but for ...
0
votes
0answers
23 views

Why does Mathematica 12.1 fail to launch available parallel kernels

I am running Mathematica 12.1 on Windows 10 Enterprise from a local PC with 24 cores using a remote site licence from my University. Under Parallel Configuration I have requested 24 local kernels (...
0
votes
2answers
67 views

Mathematica ruins domain after explicit summation?

I'm working with this function ...
0
votes
0answers
30 views

Problem with AxesLabel and LegendLabel

I'm trying to combine VectorPlot and DensityPlot on the same graph. So I have: ...
0
votes
0answers
30 views

Converting Tensor product to Matrix

I have a basic question regarding matrices and tensor product forms. Given $N > 0$, I am interested in the tensor product series $\sum_{i}^{N} X_i$, where $X_i$ is the Pauli $X$ spin operator at ...
2
votes
1answer
192 views

How can I condense this code?

Here is part of a code I wrote: ...
1
vote
1answer
32 views

Compression results in unpacking of integers but not reals

Consider the following; Pack some integers. In[287]:= Clear[p5i, p5ic, p5icu, p5r, p5rc, p5rcu] In[288]:= p5i = ToPackedArray@Range@5 Out[288]= {1, 2, 3, 4, 5} ...
1
vote
1answer
72 views

How can I find all solutions of this equation?

I am trying to solve this equation with integer solution $x^3 + (x + 1)^3 + (x + 2)^3 + (x + 3)^3 + (x + 4)^3 + (x + 5)^3 + (x + 6)^3 + (x + 7)^3 = y^3.$ I tried ...
2
votes
1answer
51 views

Too small to represent and Chop in inaccessible algorithm

Overview I want to apply a specified Chop function to every step in an function call in Mathematica (in my case LegendreP), ...
2
votes
2answers
164 views

Delete a range of elements from a list [closed]

If I have a list of 100 integers, say {1,2...100}, and I wished to delete all elements that are greater than a random integer $n$, what command should I use for ...

15 30 50 per page
1
2 3 4 5
1493