Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
115 views

Numerical Stiffness Issue in NDSolve for Stiff ODE System: How to Avoid Extrapolation Errors?

I am trying to solve a stiff system of ode differential equations (ODEs) using NDSolve in Wolfram Mathematica. The problem is related to modeling the dynamics of proteins over time, with parameters ...
Athanasios Paraskevopoulos's user avatar
-2 votes
1 answer
86 views

Novice Mathematica User: Plots are very small despite changing image size option

I'm currently writing a paper about marine chemistry and I'm trying to include a reactive transport model that was written in mathematica by a collaborator. I have a lot of experience in SAS, but I ...
yousavdj's user avatar
5 votes
3 answers
307 views

Plotting Incidence function of the SIR Model

I am working on the SIR model and I am trying to plot the incidence function on a specific time interval. ...
Athanasios Paraskevopoulos's user avatar
4 votes
2 answers
125 views

ParametricPlot for phase field error (case: Predator-Prey Model) [closed]

so I have a task that need to draw a phase field of predator-prey model, but first I tried my lecturer's coding: ...
Meow Nyan's user avatar
0 votes
0 answers
279 views

How to plot elements from an array?

Im trying to solve a differential equation for a range of parameters (1->4). I then want to automatically plot a graph for each of those parameters. ...
Pingu's user avatar
  • 1
1 vote
0 answers
118 views

Non linear differential equation plot [closed]

Consider the following paper: https://reader.elsevier.com/reader/sd/pii/S0096300306007715?token=2B98E3B12F1E623C99A0787996469AF36E8EF230F6ED5289EAFB60B64CE79A6ACCF74B946A34F3370C65D4FC99018648&...
Math's user avatar
  • 407
3 votes
0 answers
135 views

Graph embedding constrained to a surface?

Have been contemplating it for a while, but did not dare to post as I felt like this must be a major undertaking to implement. Then saw the excellent answers to a recent question RegionPlot3D KnotData ...
მამუკა ჯიბლაძე's user avatar
0 votes
1 answer
115 views

Equation Plotting

I'm using the mean field theory approximation and the Ising Model for magnetization to come up with the following equation: m(T) = tanh(m(T)/T) where T is an ...
awdft34's user avatar
2 votes
3 answers
224 views

Nonlinear Difference Equations [closed]

How can I plot the nonlinear difference equations?
user74531's user avatar
2 votes
1 answer
422 views

How to Make a Bifurcation plot of a non linear system of ODEs

I am modelling bacterial growth. I have a quite difficult non linear systems of ODE's. I have 2 bacteria that i'm modelling with competition, as wel as transfer to a different place. so there are 2 ...
Zara's user avatar
  • 21
0 votes
0 answers
101 views

Error in Monte Carlo simulation. Now Random walk (dotted curve) doesn't fit to the analytical curve (dashed curve)

I've been trying to code a kinetic monte carlo simulation for a system of consecutive chemical reactions using a fixed (repaired) code that the user flinty gives me in the last questions I post: ...
Nebula's user avatar
  • 13
1 vote
1 answer
98 views

Strange error not found in a monte carlo code, Infinite expression 1/0 encountered

I've been trying to code a kinetic monte carlo simulation for a dimerization reaction, 2M ---> D. However I have a kinetic Monte Carlo code for a first order decomposition reaction of AIBN (that's ...
Nebula's user avatar
  • 13
4 votes
1 answer
96 views

Trying to recreate a plot which tracks the age of individuals inside a compartment model

I am using a compartment model from this paper. I am trying to recreate Figure 6. I will be honest, I have no clue how to approach this. The paper doesn't give information on how to achieve the ...
Luca's user avatar
  • 57
1 vote
1 answer
123 views

How can I get a plot of "surface area coverage" of a parametric plot?

I have a parametric function defined by the x and y functions: ...
user avatar
-4 votes
1 answer
235 views

3D Plotting and optimising on the surface area of a spherical gyroid [closed]

*this is an equation of a shperical gyroid emphasized texti want to plot it in mathematica and obtain the shapes like those on the picture below. sinxcosy + sinycosz + sinzcosx = 0 i also want to know ...
Selamo Basile's user avatar
0 votes
0 answers
2k views

Help with "Coordinate should be a pair of numbers, or a Scaled or Offset form."

I am plotting the pair of recurrence relations: ...
Alex's user avatar
  • 83
5 votes
1 answer
877 views

Mathematica code for bifurcation diagram in 3D

Good day. I need help with the code in mathematica to plot the bifurcation diagram (e vs z*) or (e vs x*), for the system ...
Patrick's user avatar
  • 99
2 votes
1 answer
211 views

Fitting data with 3 linear fits

I have a dataset that can be easily approximated by a piecewise function composing of 3 linear functions, but i am unable to get an accurate fit once the third linear function is required. The model ...
william tepe's user avatar
0 votes
1 answer
493 views

Model fitting for concave curve: test if asymptote or convergence exist

I am asking a double check if conceptually I set up proper model and proceeding in good direction to drive conclusions. I have a distribution that looks like this: I want to test if for increasing x ...
user305883's user avatar
0 votes
0 answers
172 views

Help to model fitting a distribution of weights in weighted graphs : power or exponential law?

I found this post https://math.stackexchange.com/questions/164436/difference-between-power-law-distribution-and-exponential-decay useful, but not sufficient for me to understand which law may best ...
user305883's user avatar
42 votes
5 answers
15k views

My Girlfriend is going to prison...Save her with Math

Salacious title, but true story. ...
Prisoners Dilema's user avatar
8 votes
1 answer
743 views

Computing launch parameters for hitting a point in 3D with projectile under influence of wind

The end goal of this problem is to compute functions which describe the launch parameters which are needed to hit a specified goal in 3D in the presence of wind disturbances. This is as far I have ...
Julian's user avatar
  • 492
4 votes
3 answers
1k views

Plot Plane to Intersect 3D Contour Plot in Mathematica

I have a 3D model of a heart in Mathematica and I'm trying to create a plane so that the open surface (as seen in the image below) is cut off so that the heart can have a solid, level surface. How ...
Kolibrie's user avatar
  • 145
7 votes
0 answers
478 views

How can I model the volatility, using a GARCH(1,1), of a time series of returns (and plot it) using Mathematica? [closed]

I know that if I use this code: tsm = TimeSeriesModelFit[ret, {"GARCH", {1, 1}}]; I can get the parameters using this: ...
Rodrigo Guinea's user avatar
6 votes
1 answer
810 views

Plot two functions within manipulate

I just want to plot all stochastic processes and their average process. The original code without the average is: ...
Milan Ivica's user avatar
2 votes
1 answer
757 views

PlotRange problems

I have a Delay Differential Equation of the form: ...
standrewsigem's user avatar