All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
12 views

Mixed Integer Quadratic Program (MIQP): Kernel crashes during computation

I am solving an optimal placement problem using MIQP (Mixed Integer Quadratic Program, using the QuadraticOptimization function WM version 14). The objective ...
Lavr's user avatar
  • 1
1 vote
0 answers
35 views

TimeLine Plot of Every Historical Country/Empire

I'm trying to see if Mathematica can make a similar timeline to this: I'm struggling to do two things. Relate the size of the timeline axis to size of the empire's polygon Match the timeline ...
Tomi's user avatar
  • 4,448
3 votes
1 answer
82 views

On the new package style. Conflict using the same name in the parent and in the child packages

I am learning the new package style as current one is not working for me. I know it is probably not a good idea to use something with no official Wolfram documentation and not officially released. But ...
Nasser's user avatar
  • 145k
0 votes
1 answer
60 views

How to export a UnitTriangle function directly, instead of a piecewise function? [closed]

I am calculating the fourier transfom of a Sinc^2 function. I would like to know if it possible to export the UnitTriangle function directly, instead of a piecewise function. The details are as ...
user14634's user avatar
  • 779
0 votes
2 answers
49 views

Ticks Disappear From LogLinearPLots

Can someone explain why the ticks on my plots disappear? Initially they're present ...
NavStoke's user avatar
2 votes
1 answer
207 views

How Can I Relax a Molecule in Mathematica?

I have a molecule in Mathematica. It consists of around 70 atoms, but let us for simplicity assume that we only have four atoms: ...
flg's user avatar
  • 21
0 votes
0 answers
73 views

How to get $y_M = \dfrac{y_A+ y_B}{2}=\dfrac{-4+ (-2)}{2}= -3$ instead of $y_M = \dfrac{y_A+ y_B}{2}=\dfrac{-4+-2}{2}= -3$ of TeX formatting? [closed]

I this code, at Solution 3, the latext code output $y_M = \dfrac{y_A+ y_B}{2}=\dfrac{-4+ -2}{2}= -3$. How can I get $y_M = \dfrac{y_A+ y_B}{2}=\dfrac{-4-2}{2}= -3$ or $y_M = \dfrac{y_A+ y_B}{2}=\...
John Paul Peter's user avatar
0 votes
0 answers
58 views

Is it possible to solve the attached integral equation using Mathematica? [closed]

I am trying to solve the following integral equation. Although it is solvable by hand, I would like to solve it using Mathematica. Here is my code: ...
ZSN's user avatar
  • 1
0 votes
0 answers
18 views

What is the probability of support detection in sparse recovery using matching persuit and random sampling [closed]

I am working on Compressive spectrum sensing CSS. I performed random sampling, OMP recovery. The detection is done by finding nonzero amplitudes in the recovered spectrum to decide the belonging of ...
BENZATER hadj's user avatar
1 vote
1 answer
55 views

When using FindFit to fit a large dataset with multiple sine functions, a step size error occur

My dataset looks like datatandA = Import["dataForQuestionFindFit20240528.csv"]; ListPlot[datatandA] and the corresponding FFT spectrum looks like ...
so_sure's user avatar
  • 351
0 votes
1 answer
81 views

How to derive a closed-form expression for the sum of this series?

Mathematica 14.0 on Windows produces Sum[x^(9 + 6 k)/(9 + 6 k)!, {k, 0, Infinity}] ...
user64494's user avatar
  • 26.7k
0 votes
2 answers
87 views

Proper Way to Clear all 'Option' Variables for a Function?

I've poked around and searched a bit, but thus far have not been able to find anything that solves the following problem: ...
anonmous's user avatar
0 votes
0 answers
57 views

Defining a Function that Can Optionally Output an Arbitrary Number of Tables and Graphs

I'm importing some data from a csv file, performing various filtering operations on it, and then constructing graphs. I'm trying to define a function that does it 'all,' that supports the importing, ...
anonmous's user avatar
4 votes
2 answers
206 views

How to keep private package function private when adding package name to function name inside the package?

I like to call my package private functions using mypkg`functionName[...] i.e. add an explicit mypkg to each call. This ...
Nasser's user avatar
  • 145k
2 votes
1 answer
55 views

Finite ELement Model - simple beam, ends pinned, uniform load over 1/2 of beam, getting several errors

here is the code I am using - having issues getting started in FEA for this simple beam model. The problem is simple - I have looked at posted examples of MMA FEA, but they are all 2D and 3D problems....
SAK's user avatar
  • 33
4 votes
3 answers
243 views

How to change the axis orientation of the cylinder in `ContourPlot3D`?

How to get the axis of the cylinder oriented along the red line shown in the figure below ? Here is my code : ...
Arssat's user avatar
  • 129
-2 votes
0 answers
80 views

B-Spline implementation [closed]

I am trying to implement the calculation of a B-Spline from the Wolfram description https://mathworld.wolfram.com/B-Spline.html. Here is my code for the basis functions: ...
ravenspoint's user avatar
0 votes
1 answer
70 views

Issue with numerical convolution integral

I want to solve a convolution integral numerically: ...
Luigi's user avatar
  • 1,303
0 votes
0 answers
60 views

Is there an easy way to understand how to manipulate summations?

I'm working in a very very long calculation that could be done by hand but it might be tedious. Moreover, when doing by hand that amount of calculations I'm subject to errors, of course. Then I ...
Felipe's user avatar
  • 111
3 votes
0 answers
115 views

Why does FullSimplify crash the kernel on 13.2?

Save your work before attempting I realise this may have been fixed in later versions - I am more interested in the why. On OSX 14.4 and Mathematica 13.2 the code below will crash the kernel if ...
gpap's user avatar
  • 9,747
0 votes
1 answer
44 views

Inequality too complex for Mathematica to solve? [closed]

I'm trying to solve some quite complicated inequalities (not a system), one of them for example being ...
oanesdof's user avatar
0 votes
1 answer
48 views

How can I keep form of scalar product of two vectors?

Let a = {-6, 1, -12}; b = {x - 2, y - 1, z - 5} be two vectors. I want to keep form of scalar product of a and ...
Thuy Nguyen's user avatar
  • 1,097
1 vote
1 answer
82 views

Integral of $1/\sin(y)$ in Wolfram Mathematica vs. Wolfram|Alpha

I was looking at solution of this ode using step-by-step in Wolfram|Alpha: But in Mathematica V 14 Integrate[Csc[y], y] gives ...
Nasser's user avatar
  • 145k
0 votes
0 answers
28 views

Numerical Integration limits - Infinity works fine, Large finite upper limit does not

I am calculating an integral with NIntegrate from a lower finite limit to infinity. The integrand contains logarithms and square-roots. It has a pole at some point, and I substract the denominator at ...
Xorker's user avatar
  • 23
0 votes
1 answer
39 views

Is there a simple way to generate a non-uniformly divided interval according to an arbitrary division function?

I often encounter the need to non-uniformly divide an interval. For example, in the code below, I already have a uniformly divided interval teven with [t0, t1] and ...
xinxin guo's user avatar
  • 1,401
0 votes
3 answers
77 views

RecursionLimit error appearing if solve the recursion formula

...
liang zhang's user avatar
0 votes
0 answers
44 views

Plot time (hours, minutes, seconds) along y axis

I would like to plot time (in hours, minutes, seconds) on the ordinate and date on the abscissa, much as in this answer, but I don't want to convert the abscissa values to a single unit (e.g., seconds)...
David G. Stork's user avatar
0 votes
0 answers
43 views

Forecast of 100 days prices using ARIMA-GARCH model but I encountered error saying the input for garch model is not valid

The below section is the data I take to do the ARIMA-GARCH model. ...
VishnuPrasad 's user avatar
1 vote
1 answer
105 views

Unable to solve/reduce geometric Brownian motion inequality

I am trying to solve a few inequalities like the one below for Z: S * Exp[(mu - sigma^2/2)*T + Sqrt[T]*sigma*Z] > k Manually,...
Phil-ZXX's user avatar
  • 471
10 votes
2 answers
587 views

Bugs with `Sum`?

In this post, I provided a solution to the integral $$\int_0^{\infty}\left[\int^1_0J_0(v\rho)\cos(\rho^2/2)\rho\,\mathrm{d}\rho \right]^2v\mathrm{d}v$$ However, I found a bug with ...
Jie Zhu's user avatar
  • 1,008
6 votes
2 answers
663 views

How can I solve a list of problems and get a LaTeX file?

I have a list of problems ...
John Paul Peter's user avatar
2 votes
1 answer
80 views

Integrate regions in Plot/Piecewise

I have the following code: ...
vladpopovcev's user avatar
0 votes
1 answer
46 views

How can I make a Button in base of PopupView[items, i, base] behave as a standalone button?

Consider the following code: ClearAll[x]; x = 0; Button["Click", (x += 1;)] Dynamic[x] Every time I click the button, the dynamic value of ...
Shredderroy's user avatar
  • 5,251
0 votes
0 answers
21 views

Confine the variables to the real domain in numerical maximization

I'm trying to first obtain the objective function, V[r,k], through integration and then find the optimal r and ...
ppp's user avatar
  • 725
2 votes
2 answers
77 views

Simplifying Min with assumptions

Lots of ecological models use Liebig's law of the minimum when multiple essential resources may limit growth. I want to break these equations into the special cases using ...
Chris K's user avatar
  • 20.3k
5 votes
2 answers
178 views

Evaluating Integral

I am having trouble evaluating the following integral, which they say has a solution! Thanks. ...
Chan 13's user avatar
  • 51
1 vote
1 answer
175 views

Solving a complicated equation for approximate analytical solution

I am trying to solve the Following equation for r, 2*a*Q^4 + 5*r^4*(-4*Q^2 - 2*r*(-3*M + r) + 3*c*r^(1 - 3*\[Omega])*(1 + \[Omega])) ==0 Clearly this is unsolvable....
Debojyoti Mondal's user avatar
3 votes
7 answers
403 views

Extract result of Reap in a natural way no matter if it's empty

This feature has long troubled me, I would like to share it. If Reap has non-empty set of sown, result looks like: ...
lesobrod's user avatar
  • 1,729
0 votes
0 answers
27 views

Using NetMeasurements for basic neural network

I have a neural network that works fine, but I would like to obtain some results on the Validation Set which provides some metrics on the performance of the training. I am obtaining some strange ...
John Doe's user avatar
  • 229
1 vote
0 answers
83 views

Automatic parallelization of vector ODEs?

I read that if an ODE dX/dt=F[t,X} where X and F are vectors, is written in a vector form, the computation will be parallelized automatically. Thus I did no explicit parallelization in my Mathematica ...
Dmitry Garanin's user avatar
0 votes
1 answer
44 views

Using FindRoot inside Table [closed]

I want to use FindRoot inside Table to get solutions from several guesses. For one- variable non-linear equations this works well: ...
BolimboSHA's user avatar
1 vote
0 answers
35 views

Is MomentumCombine the inverse of ExpandScalarProduct?

My question (perhaps naive) is the following: The documentation says that MomentumCombine is the inverse operation of ...
ElJefeDelDesierto's user avatar
1 vote
2 answers
88 views

Including all constraints in a geometry problem

I'm trying to solve this geometry problem using GeometricScene: Find angle x: Here's my (incomplete) code: ...
David G. Stork's user avatar
0 votes
1 answer
72 views

Bifurcation plot of polynomial equation having two variable on y-axis and one variable on x-axis

I want to plot the following equation: ...
vijay's user avatar
  • 47
0 votes
0 answers
57 views

Implementing a permutation in Mathematica

The context of this question is to calculate DiracTrace in dimensional regularization, using a Scheme. The procedure is implemented in FeynCalc, but I want to implement explicitly. Let's consider a ...
Tanmoy Pati's user avatar
0 votes
1 answer
72 views

How to save a list of data in txt format in mathematica?

I have the following program in mathematica ...
Edinardo Rodrigues's user avatar
3 votes
1 answer
71 views

Find more relationships with LatticeReduce

I'm using LatticeReduce to find linear relationships in these trigonometric expressions, ...
matrix42's user avatar
  • 7,138
2 votes
3 answers
156 views

Converting an algebric expression into a matrix form

Consider the following expression: a1 b1 c1 + a4 b2 c1 + a7 b3 c1 + a2 b1 c2 + a5 b2 c2 + a8 b3 c2 + a3 b1 c3 + a6 b2 c3 + a9 b3 c3 Can Mathematica convert it ...
SciJewel's user avatar
  • 452
6 votes
1 answer
239 views

What is the difference between Clear and Remove?

I assume that there is difference between the commands Clear and Remove. But it seems to me that I am not aware of any caveats ...
MathArt's user avatar
  • 233
1 vote
1 answer
125 views

How can I get smooth of this picture?

This is my code. ...
minhthien_2016's user avatar

15 30 50 per page
1
2 3 4 5
1888