mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Fix minor typing errors in maths/ (#8959)
* updating DIRECTORY.md * types(maths): Fix pylance issues in maths * reset(vsc): Reset settings changes * Update maths/jaccard_similarity.py Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com> * revert(erosion_operation): Revert erosion_operation * test(jaccard_similarity): Add doctest to test alternative_union * types(newton_raphson): Add typehints to func bodies --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:

committed by
GitHub

parent
7618a92fee
commit
490e645ed3
@ -5,7 +5,7 @@ import numpy as np
|
||||
|
||||
def euler_modified(
|
||||
ode_func: Callable, y0: float, x0: float, step_size: float, x_end: float
|
||||
) -> np.array:
|
||||
) -> np.ndarray:
|
||||
"""
|
||||
Calculate solution at each step to an ODE using Euler's Modified Method
|
||||
The Euler Method is straightforward to implement, but can't give accurate solutions.
|
||||
|
Reference in New Issue
Block a user