Loading [MathJax]/jax/output/HTML-CSS/jax.js
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 7 years ago

Fusion809 gravatar image

How to calculate the double factorial in SageMath?

I would like to implement the square root of 2 power series:

2=1n=1(1)n(2n3)!!2n×n!

(which I obtained from the Maclaurin series of 1+x with x=1) in SageMath but I cannot seem to find the double factorial function in the SageMath docs. Is there one? I suppose if a double factorial function is not available I could use this method of finding the double factorial that I found on Wolfram Mathworld:

Γ(n+12)=(2n1)!!2nπ

How to calculate the double factorial in SageMath?

I would like to implement the square root of 2 power series:

$ \sqrt{2} = 1-\sum_{n=1}^{\infty}{\frac{(-1)^n 1-\sum \limits_{n=1}^{\infty}{\frac{(-1)^n (2n-3)!!}{2^n \times n!}} $

(which I obtained from the Maclaurin series of 1+x with x=1) in SageMath but I cannot seem to find the double factorial function in the SageMath docs. Is there one? I suppose if a double factorial function is not available I could use this method of finding the double factorial that I found on Wolfram Mathworld:

Γ(n+12)=(2n1)!!2nπ

How to calculate the double factorial in SageMath?

I would like to implement the square root of 2 power series:

2=1n=1(1)n(2n3)!!2n×n!

(which I obtained from the Maclaurin series of 1+x with x=1) in SageMath but I cannot seem to find the double factorial function in the SageMath docs. Is there one? I suppose if a double factorial function is not available I could use this method of finding the double factorial that I found on Wolfram MathworldMathWorld:

Γ(n+12)=(2n1)!!2nπ

How to calculate the double factorial in SageMath?

I would like to implement the square root of 2 power series:

$ \sqrt{2} = 1-\sum \limits_{n=1}^{\infty}{\frac{(-1)^n -\sum \limits_{n=0}^{\infty}{\frac{(-1)^n (2n-3)!!}{2^n \times n!}} $

(which I obtained from the Maclaurin series of 1+x with x=1) in SageMath but I cannot seem to find the double factorial function in the SageMath docs. Is there one? I suppose if a double factorial function is not available I could use this method of finding the double factorial that I found on Wolfram MathWorld:

Γ(n+12)=(2n1)!!2nπ