<jupyter_start><jupyter_text>Numpy Functions - Numpy contains a large number of various mathematical functions:    - Trignometric    - Arithmetic    - Exponential, complex number handling etc.<jupyter_code>import numpy as np<jupyter_output><empty_output><jupyter_text>Arithmetics Functions:<jupyter_code># Addition:
a = [1,2,3,44,5]
b = [4,5,6,7,8]
c= a+b
c
c = []
for i,j in zip(a,b):
    c.append(i+j)
    
c
ara = np.array(a)
arb = np.array(b)
arc = ara +arb
arc
a*b
ara*arb
a/b
ara/arb
a**b
#Power
ara**arb
ara 
arb<jupyter_output><empty_output><jupyter_text>Operations between arrays of different shapes will result in error<jupyter_code>arrd = np.array([1,23,4])
ara*arrd
a**2
ara**2
a*2
ara*2
#Quotient
ara//2
a//2
#Remainder
ara%2 
#absolute values
ar = np.array([-1,-5,-10,234,45,3])
np.abs(ar)
np.sqrt(ara)
np.sqrt(a)
a/0
ara/0
np.inf
np.nan<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15096481271282633, 'fraction_numerical': 0.03859250851305335, 'mean_word_length': 5.125, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '142254', 'license': 'MIT', 'n_tokens_mistral': 399, 'n_tokens_neox': 388, 'n_words': 85, 'path': 'Day 14.ipynb', 'repo_name': 'jaiyesh/15Petro-Numpy-Days', 'size': '881'}