Skip to main content
mpmath works purely numerically
Source Link
joro
  • 25.4k
  • 10
  • 66
  • 121

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right).\tag{1}\label{1}$$

We believe the LHS of \eqref{1} diverges, so this isn't true.

Q1. Are there theoretical reasons for mpmath to compute \eqref{1}?

online code

Added Despite the interesting answers, I am ready bet mpmath doesn't do any analytic stuff not related to summation, it works purely numerically and the function is treated as black box, returning real number.

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right).\tag{1}\label{1}$$

We believe the LHS of \eqref{1} diverges, so this isn't true.

Q1. Are there theoretical reasons for mpmath to compute \eqref{1}?

online code

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right).\tag{1}\label{1}$$

We believe the LHS of \eqref{1} diverges, so this isn't true.

Q1. Are there theoretical reasons for mpmath to compute \eqref{1}?

online code

Added Despite the interesting answers, I am ready bet mpmath doesn't do any analytic stuff not related to summation, it works purely numerically and the function is treated as black box, returning real number.

1/2 -> \frac1 2
Source Link
LSpice
  • 12.9k
  • 4
  • 45
  • 69

Why mpmath computes $\sum_{n=2}^\infty (-1)^n\log(n)=\log=\log\left(1/2\frac1 2 \sqrt{2} \sqrt{\pi}\right)$

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log(1/2 \sqrt{2} \sqrt{\pi}) \qquad (1)$$$$\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right).\tag{1}\label{1}$$

We believe the LHS of (\eqref{1)} diverges, so this isn't true.

Q1. Are there theoretical reasons for mpmath to compute (\eqref{1)}?

online code

Why mpmath computes $\sum_{n=2}^\infty (-1)^n\log(n)=\log(1/2 \sqrt{2} \sqrt{\pi})$

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log(1/2 \sqrt{2} \sqrt{\pi}) \qquad (1)$$

We believe the LHS of (1) diverges, so this isn't true.

Q1 Are there theoretical reasons mpmath to compute (1)?

online code

Why mpmath computes $\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right)$

Working with precision 500 decimal digits, mpmath in sage computes:

$$\sum_{n=2}^\infty (-1)^n\log(n)=\log\left(\frac1 2 \sqrt{2} \sqrt{\pi}\right).\tag{1}\label{1}$$

We believe the LHS of \eqref{1} diverges, so this isn't true.

Q1. Are there theoretical reasons for mpmath to compute \eqref{1}?

online code

edited tags
Link
GH from MO
  • 105.2k
  • 8
  • 292
  • 398
Source Link
joro
  • 25.4k
  • 10
  • 66
  • 121
Loading