All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
8 views

Using ColorFunction Rasterizes the plot

When I make a simple plot using ColorFunction, the Mathematica rasterize the plot. Is anyone else having this issue? Does anyone know a way to avoid this? ...
3
votes
1answer
136 views

Why can't Mathematica solve this definite integral?

I want to solve the integral $\int_{p_0}^{p_1}\left(T_0+\Gamma_p(p_0-p)\right)\frac{1}{p}dp$ Mathematica can do the indefinite integral immediately: ...
1
vote
1answer
79 views

Why this equation cannot be solved in Mathematica?

I do not understand why the following equation cannot be solved in Mathematica. Solve[Log[(-Exp[x] + Sqrt[2 - 3*Exp[2*x]])/2] == c*x, x] The left hand side is ...
1
vote
1answer
39 views

How to use wildcards in SequenceCases

The final task is to revise the question I posed at list rearrangement: I now start with this list: ...
3
votes
1answer
20 views

Position doesn't work for custom symbol within package

In a notebook, I can easily search an expression for a custom symbol. In[237]:= Position[{mySym, 1, 2}, mySym] Out[237]= {{1}} However, if I write a function and ...
1
vote
2answers
46 views

How to construct a pattern that match the multiple partial differential of any multi-variable functions?

For example,I want to match a multiple partial derivative of a function $f^{(1,0,1)}[x,y,z]$ which is the same as$\frac{\partial^2{f}}{\partial{x}\partial{z}}$.The only information given is the list ...
3
votes
3answers
55 views

sublist creation by string pattern

I have a list: lis = {1, {"AB", 2, 3}, {"ABC", 8, 9}, {"BC", 7}}; ...and I would like to make a new list consisting of all elements ...
1
vote
1answer
42 views

how can I get the general expression of the outer product of n sublists?

There is a large list, with $n$ sublists of the same length (e.g. length is 3). list1 = {{a_1, b_1, c_1}, {a_2, b_2, c_2},..., {a_n, b_n, c_n}} If I need to regard ...
1
vote
0answers
45 views

How to use Select and MemberQ together with Map correctly?

I have a list with quite a few elements. Each element is a rule of the type vector-> number such as {1,2,3,4}->1.435 and ...
0
votes
1answer
48 views

Numerical Integration - taking too long

recently I have been trying to calculate the following numerical integral \begin{equation} \frac{4 t}{\text{DD}}\frac{1}{2 \pi } \int_{0}^{\infty} dx \int_{0}^{\infty} d\epsilon \frac{\left(\frac{\sin ...
2
votes
0answers
33 views

How do I make a second order differential equation match a difference equation?

I have fitted a difference equation to some data and would now like to find a differential equation that matches the difference equation. The difference equation and differential equation are $$ y(n)=...
-1
votes
0answers
32 views

Defining parametric function resulting from DSolve

I am trying to define a function that is a solution of a simple ODE with a parameter, for example ...
1
vote
2answers
45 views

How to append arbitary list with {0} so that its length becomes a given integer k [closed]

How to append arbitary list with {0} so that its length becomes a given integer k? For example, when ...
3
votes
2answers
57 views

Rearranging a table

I have a table, say, with about 1000 rows and 6 columns. Out of six elements in a row, first two are independent parameters, while rest four are dependent parameters. Say, the header of the table is <...
2
votes
0answers
29 views

Is there a feasible way to passively crosscheck sequences against the OEIS database?

What this questions is not: Can I access OEIS from Mathematica? This topic has been raised more than once and has been well addressed. Here's the situation as it seems to me: OEIS is a tremendously ...
3
votes
2answers
165 views

Defining new brackets

I would like to wrap double-struck brackets around variables for notation purposes only. For instance [[X]] should display as the first image below. However, these ...
2
votes
1answer
102 views

Combining Plot with VectorPlot

I'm trying to combine the plot of a function with a vector plot, but no matter what option I choose for VectorPoints, the resulting combined plot just looks ridiculous. For example, the combined plot ...
-1
votes
1answer
46 views

Limit Plotting Issue [closed]

I recently installed Wolfram Mathematica and attempted to graph a limit, but it seems that it refuses to do so. The equation is $\lim_{x\to e^-}\frac{e}{e-x}$ and the input is Plot[Limit[Divide[e, e - ...
5
votes
3answers
181 views

list rearrangement

I have a list: lis = {{1,2,3},{"True",3,4,5},{6,5},{3},{6,4},{"True",2,1},{5},{5,6},{7,8,9}} I want to make a new list consisting of elements ...
0
votes
0answers
42 views

How do you symbolically expand a trigonometric expression? [closed]

Suppose I want to prove Sin[2x] - Cos[2x] and 2 Cos[x]Sin[x] + (Sin^2)[x] - (Cos^2)[x] are the same value symbolically how do i ...
2
votes
1answer
60 views

How to get a specific component of an equation without hardcoding? [closed]

Say I define an equation line[t_] = {t, 2t, 3t}. What code will define x[t] = t, y[t] = 2t, ...
0
votes
0answers
35 views

Cholesky-like (rank-revealing?) decomposition on singular matrices

For a singular Gram matrix $B$ I need to find some matrix $A$ such that $AA'=B$. I can add a small multiple of identity matrix, but this could break upstream analysis (application is c-approximation ...
0
votes
0answers
11 views

Simple FormFunction calling simple APIFunction not working

Why does this simple FormFunction calling a simple APIFunction not work? I have lots of cloud credits available. A simple API that plots Sin[n x] from between manipulated limits given the input n. <...
1
vote
1answer
47 views

How to do simple list traversal? And how do I insert this in a function?

I want to make a function that takes as input a list of numbers and returns a list of 4 lists; the first returned list holds all positive real; the second returned list all negative real; the third ...
4
votes
1answer
136 views

How to force MatrixPlot to plot considering a whole color spectrum?

I am trying to do the following: ...
1
vote
2answers
46 views

Problem when reading a small number as a LaTeX input

I've got a String variable defined as b="4.0 \cdot 10^{-5}", which is clearly written as LaTeX input. The problem is that when I want to obtain the ...
1
vote
1answer
36 views

FormObject line breaks. A bug?

There seems to be an issue with FormObject and line breaks: A simple example to illustrate: ...
0
votes
0answers
32 views

FeynCalc 4-momentum integrals

I was wondering if the FeynCalc package facilitates quantum field theory integrals of the form $$ \int d^{4} p_{2} d^{4} p_{3} \delta^{(4)}\left(p_{2}+p_{3}+p_{1}\right) p_{2}^{\mu} p_{3 \mu} p_{2}^{\...
5
votes
1answer
81 views

`VertexColors` seems to blend colours unevenly

VertexColors seems to blend colours unevenly, often with a "stripe" between vertices. Compare: ...
1
vote
0answers
26 views

HPC doesn't read .mx file

I am trying to work in an HPC cluster. Mathematica works fine and I can export tables that I need. However, I had one interpolated data saved in as a mx file. I ...
0
votes
1answer
31 views

Error in plotting two spheres under a transformation

The following code tries to plot two unit spheres undergoing transformation of their radius and also a translation in z direction: ...
0
votes
1answer
43 views

Partial derivative of n-variables product [duplicate]

I am new to Mathematica. I would like to calculate the partial derivative of the product, $\frac{\partial}{\partial x_{j}} y \prod _{i=1}^{n}x_{i}^3=\frac{3}{x_j} y \prod_{i=1}^nx_i^3$, where $1 < ...
4
votes
0answers
79 views

Wrong input to Line[] crashes the Front End

WARNING: The code in this post crashes the Front End on my computer, causing all unsaved work to be lost. Be sure to save your work before trying this out! ...
2
votes
1answer
52 views

select the right numbers based on a condition

I want to optimize my stock portfolio based on three components: the price of the different stocks the number to buy of each of the stocks the expected return of each stock (after 12 months) For ...
5
votes
2answers
194 views

Fourier coefficient of $\frac{1}{5 + 4\cos(x)}$ wrong

I've been trying to use Mathematica to compute the Fourier coefficient of $$ f(x) = \frac{1}{5 + 4\cos(x)}, $$ which is a $2\pi$ periodic function. Inputting ...
0
votes
0answers
49 views

Problem with FunctionRange

Finding the range of RealAbs[Log[1 + x] - Log[1 - x]] - RealAbs[x - y]/(1 + RealAbs[x - y]) on the set ...
2
votes
2answers
103 views

Really slow evaluation of a simple? list expression

I believe this is a standard problem, but I could not find a solution anywhere. Possibly because I don't know what to look for. I define a subset of some numbers and I want to count how many are less ...
0
votes
1answer
69 views

Is it possible to solve this system of ODEs using Mathematica? [closed]

I have a system of 6 1st order ODEs. Since, I don't have access to a Mathematica license yet, I have tried to solve the problem using Maxima but it failed. I have also tried Maple but it takes several ...
0
votes
1answer
36 views

NDSolve with Solution Dependent Parameters

I am trying to solve a fairly simple ODE system using NDSolve and am having a problem with the variables. I want to solve the system below: ...
4
votes
3answers
116 views

What is the underlying interpolation in "BrightBands"/"DarkBands" color scheme?

Using the bookmarked conversation mentioned in this answer, I was able to extract the colors (and their parametric positions) of the Mathematica color scheme ...
0
votes
0answers
43 views

Can I specify which terms to show on the left side and which on the right side of an equality in output?

Mathematica unexpectedly moves a part of the result of the calculation to the left side where I want to display only the unknown variable. Can I prevent this?
0
votes
1answer
38 views

PlotStyle not coloring individual points correctly

I am trying to create a 3D scatter plot, where each point is colored according to a fourth parameter (not corresponding to any of the values on the axes). To do this, I generated a list of colors, ...
1
vote
0answers
40 views

Can't Export string made with StringForm?

This works. It returns "acb". StringForm["a``b", "c"] This doesn't work. ...
2
votes
1answer
61 views

Minimizing functional using FindMinimum

Suppose you are given some functional $S$, (with some 'Lagrangian' $L$) $$S[f]=\int_{t_i}^{t_f}L[f(t),f'(t)]dt$$ and you want to find the function $f$ that minimizes it, subject to some boundary ...
0
votes
1answer
57 views

How to show these two plots "clearly"?

The following two plots are not visible when shown togather: ...
0
votes
0answers
42 views

Inverse/Division in finite field?

Think of multiplictavie group of finite field F[p,n], where p is a prime number and n is a positive integer. The whole elements of F[p,n] can be represented as p^n-p^(n-1) positive integers in the ...
0
votes
0answers
7 views

FormLayoutFunction with RepeatingElement and inputs from prior FormObject

I want to condition the layout of the second page of a form based on inputs from the first page. Somehow RepeatingElement confounds this. Step 1: A not-so-conditional conditional layout function ...
2
votes
1answer
54 views

Make a Greek letter with a subscript appear in an Input message

I've got a variable that has two names on it. It is defined as follows: par={b, Subscript[λ, 0]} I would like to ask the user to enter a value of the second ...

15 30 50 per page
1
2 3 4 5
1591