mpmath Questions

1

Solved

I have written a function to compute the Laplace transform of a function using scipy.integrate.quad. It is not a very sophisticated function and currently performs poorly on the probability density...
Distinctive asked 21/10, 2020 at 11:28

2

Solved

I'm working with mpmath python library to gain precision during some computations, but i need to cast the result in a numpy native type. More precisely i need to cast an mpmath matrix (that contai...
Feucht asked 11/2, 2015 at 4:20

2

I have a numpy array A with mpf elements that have decimal precision 100. Is this precision cast away if I decide to take the numpy dot product of A with itself? If this is the case, is there any ...
Legging asked 1/3, 2014 at 11:49

1

This is my first attempt to use JIT for python and this is the use case I want to speed up. I read a bit about numba and it seemed simple enough but the following code didn't provide any speedup. P...
Shortlived asked 25/10, 2014 at 18:10

2

Solved

I want to use the jacobDN function in sympy, so I download it and python setup.py install it, successfully. When I want to use it as in the documentation does: >>> from sympy.mpmath impo...
Treasure asked 11/12, 2015 at 1:13

1

Solved

I have some calculations that involve factorials that explode pretty fast so I resolved to use the arbitrary precision library mpmath. The code I have looks like this: import numpy as np import m...
Phia asked 23/10, 2014 at 23:25

3

Solved

What is the proper way in Python to allow the user to extend the types on which a function can operate without altering the original code of the function? Suppose I have a module with a my_module....
Rotman asked 23/9, 2013 at 10:52

5

Solved

In matlab there is a special function which is not available in any of the collections for the Python I know (numpy, scipy, mpmath, ...). Probably there are other places where functions like this...
Anastomosis asked 22/1, 2012 at 16:21

3

Solved

I am looking to perform element-wise mpmath operations on Python arrays. For example, import mpmath as mpm x = mpm.arange(0,4) y = mpm.sin(x) # error Alternatively, using mpmath matrices x = mp...
Lauree asked 16/3, 2013 at 14:47

2

Solved

I have: import numpy as np from mpmath import * mpf(np.array(range(0,600))) But it won't let me do it: TypeError: cannot create mpf from array So what should I be doing? Essentially I'm goi...
Attending asked 6/12, 2012 at 12:35
1

© 2022 - 2025 — McMap. All rights reserved.