Articles → Numpy → Fmin Function In Numpy

Fmin Function In Numpy






Purpose





Example


import numpy as np

print(np.fmin([2, 3, 4], [1, 5, 2]))




  1. Compares 2 and 1 and returns 1.
  2. Compares 3 and 5 and returns 3.
  3. Compares 4 and 2 and returns 2.



Output


Picture showing the output of fmin function in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Wednesday, June 26, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250