Skip to main content

All Questions

0 votes
0 answers
46 views

How to Set Precision for an RSOLVE Problem

The following code was working fine -- now it produces errors. I originally built this in ver 13.1 and I'm now running ver 14. I think I'm getting machine precision errors after k=11 that were not ...
user42700's user avatar
  • 1,773
3 votes
2 answers
61 views

RSolve does not evaluate this recursion with two boundary conditions

I am using RSolve to solve for a function defined recursively, with two boundary conditions: First boundary condition describes the relationship between $f(1)$ and $f(0)$ Second boundary condition ...
Kuantew's user avatar
  • 131
0 votes
0 answers
63 views

Recursion limit for NDSolve

I have a fairly complex equation containing many terms, I can use the NDSolve for solving the differential equation for lesser terms (6400ish). But can't do it for ...
Bravyi's user avatar
  • 21
3 votes
2 answers
222 views

Can Mathematica simplify an ordinary differential equation (ODE) by assuming a power series solution and obtain the recurrence relation?

I have an ordinary differential equation and want to solve it using power series as ψ[x_] = Sum[Subscript[a, n] x^n, {n, 0, ∞}] to obtain the recurrence relation ...
PhysFan's user avatar
  • 63
1 vote
0 answers
57 views

Solving a System of Recursively Defined Equations in Mathematica

I am trying to solve a system of equations in Mathematica where the variables are recursively defined. The system represents a probability distribution, and I want to find the values of the variables ...
Resting Platypus's user avatar
0 votes
3 answers
112 views

Calculate Bernoulli numbers ( with a twist) [closed]

Mathematica has an inbuilt function BernoulliB that calculates $B_n$ for which, $$\frac{t} {\left(e^t-1\right)}=\sum_{n=0}^{\infty} \frac{B_n}{n !}t^n $$ I need to ...
Dotman's user avatar
  • 496
0 votes
1 answer
135 views

Kernel crashes after long iterations

I am trying to get a numerical root of a function defined as below. But after some large recursion the kernel get crashed. But for relatively low recursion(10000) that does not make any problem. But I ...
s_mondal's user avatar
1 vote
1 answer
117 views

RSolve with integer and boolean variable

I have a recurrence relation with two variables $i, b$ where $i \in \{0, \ldots, n-1\}$ for some parameter $n \in \mathbb{N}$; and $b\in \{0,1\}$. I tried to solve it using RSolve, but the function ...
black's user avatar
  • 251
2 votes
3 answers
162 views

Solving equation with delay term

I am trying to solve an equation looks like this... x[t] == t^2 + x[t-10] How can I obtain a numerical solution for x[t] in Mathematica? Thanks.
Matt Chen's user avatar
2 votes
2 answers
175 views

Mathematica code for Newton's Method doesn't work [duplicate]

I am trying to program Newton's Method in Mathematica to compute the roots of $f(x)=x^3-6x^2+11x-6$ using the Do command but my code gives a ...
user avatar
0 votes
1 answer
79 views

Trouble while trying to re-run open source code

I am a physics student and this is my first time working with Mathematica. I am trying to run the notebook mentioned here, titled "Amplification factors of the superradiant scattering of a ...
newtothis's user avatar
1 vote
0 answers
127 views

How to solve a system with infinitely many equations?

I need to solve the following system of (infinitely many) equations. I am looking for $V(0,0)$ $t \in \{0,1,2.....\}$ with one caveat that $s \leq 1+t$ should hold. $ s \in \{1,2,3,L-1\}$ fixed ...
Monire Jalili's user avatar
5 votes
3 answers
463 views

2 issues with ListDensityPlot

I am using Mathematica Version Number 12.0.0.0 Platform: Microsoft Windows (64-bit) The FIRST issue is that the ListDensityPlot is not plotting values of x[Tfinal] ...
Lucas Santana Souza's user avatar
5 votes
1 answer
2k views

Why is this recursive code so slow?

This code for the first five iterations the speed is okay, but after that the speed is very slow, I cannot understand what is wrong with this? Would you please help me fix it? ...
morapi's user avatar
  • 67
1 vote
1 answer
179 views

RSolve and a Piecewise Recurrence + Runtime

This should really be a comment to this answer but I don't have enough rep. I'd like to know how to do the same thing (efficiently - see below) but with $\mod 3$ conditions, i.e. define a[k] to be the ...
user234988's user avatar

15 30 50 per page
1
2 3 4 5