NumPy: n-te Wurzel berechnen
Um die n-te Wurzel einer Zahl oder eines Arrays x in NumPy zu berechnen, verwende:
numpy_nth_root.py
np.power(x, (1/n))n kann eine natürliche Zahl wie 4 sein, aber auch eine Gleitkommazahl wie 3.26.
Beispiel: Berechne die 78. Wurzel von 1.234
numpy_nth_root_example.py
>>> import numpy as np
>>> np.power(1.234, (1/78))
1.0026992894299456Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow