{"id":89098,"date":"2024-04-22T18:00:54","date_gmt":"2024-04-22T12:30:54","guid":{"rendered":"https:\/\/techvidvan.com\/tutorials\/?p=89098"},"modified":"2024-04-22T18:41:51","modified_gmt":"2024-04-22T13:11:51","slug":"numpy-arithmetic-operations","status":"publish","type":"post","link":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/","title":{"rendered":"Numpy Arithmetic Operations with Examples"},"content":{"rendered":"<p>Arithmetic operations are fundamental, playing an important role in science and computer applications. In data manipulation and numerical computation, NumPy (Numerical Python) stands out as a powerful library that provides a wide range of mathematical functions for efficient data manipulation.<\/p>\n<p>In this beginner-friendly course, we will explore the important arithmetic functions of NumPy and their use to perform element-wise operations on arrays. Let&#8217;s learn how to do it!<\/p>\n<h2>Why NumPy Arithmetic Operations Matter?<\/h2>\n<p>NumPy is a popular library in the Python ecosystem, known for its ability to perform numerical calculations. When it comes to arithmetic operations on arrays, <strong>it offers several advantages:<\/strong><\/p>\n<p><strong>Performance:<\/strong> NumPy programs are optimized for speed, making them significantly faster than traditional Python programs.<\/p>\n<p><strong>Flexibility:<\/strong> NumPy simplifies complex numerical operations by providing a unified interface that allows you to manage arrays.<\/p>\n<p><strong>Propagation:<\/strong> NumPy allows you to perform operations on arrays of different sizes, thanks to its propagation feature that changes the dimensions automatically.<\/p>\n<p><strong>Versatility:<\/strong> NumPy supports a wide range of mathematical functions and applications, making it suitable for a variety of scientific and technical applications.<\/p>\n<p>Now, let&#8217;s dive into some of the most commonly used arithmetic operations in NumPy.<\/p>\n<h3>List of NumPy Arithmetic Operations<\/h3>\n<p><strong>Here is a list of commonly used arithmetic operations in NumPy, along with their associated operators and built-in functions:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Element-wise Operation<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Operator<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Function<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Addition<\/span><\/td>\n<td><span style=\"font-weight: 400;\">+<\/span><\/td>\n<td><span style=\"font-weight: 400;\">add()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Subtraction<\/span><\/td>\n<td><span style=\"font-weight: 400;\">&#8211;<\/span><\/td>\n<td><span style=\"font-weight: 400;\">subtract()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Multiplication<\/span><\/td>\n<td><span style=\"font-weight: 400;\">*<\/span><\/td>\n<td><span style=\"font-weight: 400;\">multiply()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Division<\/span><\/td>\n<td><span style=\"font-weight: 400;\">\/<\/span><\/td>\n<td><span style=\"font-weight: 400;\">divide()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Exponentiation<\/span><\/td>\n<td><span style=\"font-weight: 400;\">**<\/span><\/td>\n<td><span style=\"font-weight: 400;\">power()<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">Modulus<\/span><\/td>\n<td><span style=\"font-weight: 400;\">%<\/span><\/td>\n<td><span style=\"font-weight: 400;\">mod()<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>To perform each operation, you can choose either the associated operator or the corresponding built-in function. For example, to perform addition, you can use either the + operator or the add() function.<\/p>\n<h3>NumPy Array Element-Wise Addition<\/h3>\n<p>Element-wise addition allows you to add corresponding elements of two NumPy arrays.<\/p>\n<p><strong> Let&#8217;s see how to do this using both the + operator and the add() function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\nfirst_array = np.array([1, 3, 5, 7])\r\nsecond_array = np.array([2, 4, 6, 8])\r\n\r\n# Using the + operator\r\nresult1 = first_array + second_array\r\nprint(\"Using the + operator:\", result1)\r\n\r\n# Using the add() function\r\nresult2 = np.add(first_array, second_array)\r\nprint(\"Using the add() function:\", result2)<\/pre>\n<p>In this example, we create two arrays, first_array and second_array, and then perform element-wise addition using both the + operator and the add() function. As you can see, both methods produce the same result.<\/p>\n<p><strong>Output:<\/strong><\/p>\n<p><strong>Using the + operator:<\/strong> [ 3 7 11 15]<br \/>\n<strong>Using the add() function:<\/strong> [ 3 7 11 15]<\/p>\n<p>Both + and add() deliver the same outcome, giving you the flexibility to choose the method that suits your coding style.<\/p>\n<h3>NumPy Array Element-Wise Subtraction<\/h3>\n<p><strong>Similar to addition, subtraction in NumPy can be accomplished using either the &#8211; operator or the subtract() function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\nfirst_array = np.array([3, 9, 27, 81])\r\nsecond_array = np.array([2, 4, 8, 16])\r\n\r\n# Using the - operator\r\nresult1 = first_array - second_array\r\nprint(\"Using the - operator:\", result1)\r\n\r\n# Using the subtract() function\r\nresult2 = np.subtract(first_array, second_array)\r\nprint(\"Using the subtract() function:\", result2)<\/pre>\n<p>This code snippet demonstrates subtraction between two NumPy arrays, first_array and second_array, using both the &#8211; operator and the subtract() function.<\/p>\n<p><strong>Output:<\/strong><\/p>\n<p><strong>Using the &#8211; operator:<\/strong> [ 1 5 19 65]<br \/>\n<strong>Using the subtract() function:<\/strong> [ 1 5 19 65]<\/p>\n<p>Again, you can choose either method based on your preference.<\/p>\n<h3>NumPy Array Element-Wise Multiplication<\/h3>\n<p>Element-wise multiplication involves multiplying the corresponding elements of two NumPy arrays.<\/p>\n<p><strong> You can achieve this using the * operator or the multiply() function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\nfirst_array = np.array([1, 3, 5, 7])\r\nsecond_array = np.array([2, 4, 6, 8])\r\n\r\n# Using the * operator\r\nresult1 = first_array * second_array\r\nprint(\"Using the * operator:\", result1)\r\n\r\n# Using the multiply() function\r\nresult2 = np.multiply(first_array, second_array)\r\nprint(\"Using the multiply() function:\", result2)<\/pre>\n<p>In this example, we demonstrate two ways to multiply the two arrays element-wise, utilizing the * operator and the multiply() function.<\/p>\n<p><strong>Output:<\/strong><br \/>\n<strong>Using the * operator:<\/strong> [ 2 12 30 56]<br \/>\n<strong>Using the multiply() function:<\/strong> [ 2 12 30 56]<\/p>\n<p>Both approaches provide the same result, allowing you to choose the one that fits your coding style.<\/p>\n<h3>NumPy Array Element-Wise Division<\/h3>\n<p>Element-wise division entails dividing the corresponding elements of two NumPy arrays.<\/p>\n<p><strong>You can perform this operation using either the \/ operator or the divide() function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\nfirst_array = np.array([1, 2, 3])\r\nsecond_array = np.array([4, 5, 6])\r\n\r\n# Using the \/ operator\r\nresult1 = first_array \/ second_array\r\nprint(\"Using the \/ operator:\", result1)\r\n\r\n# Using the divide() function\r\nresult2 = np.divide(first_array, second_array)\r\nprint(\"Using the divide() function:\", result2)<\/pre>\n<p>This code snippet demonstrates element-wise division between two NumPy arrays, first_array and second_array, using both the \/ operator and the divide() function.<\/p>\n<p><strong>Output:<\/strong><br \/>\n<strong>Using the \/ operator:<\/strong> [0.25 0.4 0.5 ]<br \/>\n<strong>Using the divide() function:<\/strong> [0.25 0.4 0.5 ]<\/p>\n<p>As shown, both the \/ operator and the divide() function yield the same result.<\/p>\n<h3>NumPy Array Element-Wise Exponentiation<\/h3>\n<p>Element-wise exponentiation involves raising each element of an array to a given power. NumPy offers two options for performing this operation: the ** operator and the power() function.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\narray1 = np.array([1, 2, 3])\r\n\r\n# Using the ** operator\r\nresult1 = array1 ** 2\r\nprint(\"Using the ** operator:\", result1)\r\n\r\n# Using the power() function\r\nresult2 = np.power(array1, 2)\r\nprint(\"Using the power() function:\", result2)<\/pre>\n<p>In this example, we use the ** operator and the power() function to perform the element-wise exponentiation operation on the array1 array, raising each element to the power of 2.<\/p>\n<p><strong>Output:<\/strong><br \/>\n<strong>Using the ** operator:<\/strong> [1 4 9]<br \/>\n<strong>Using the power() function:<\/strong> [1 4 9]<\/p>\n<p>Both the ** operator and the power() function achieve the same result by raising each element of array1 to the power of 2.<\/p>\n<h3>NumPy Array Element-Wise Modulus<\/h3>\n<p>The modulus operation in NumPy arrays calculates the remainder of element-wise division between two arrays.<\/p>\n<p><strong>You can perform this operation using either the % operator or the mod() function:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">import numpy as np\r\n\r\nfirst_array = np.array([9, 10, 20])\r\nsecond_array = np.array([2, 5, 7])\r\n\r\n# Using the % operator\r\nresult1 = first_array % second_array\r\nprint(\"Using the % operator:\", result1)\r\n\r\n# Using the mod() function\r\nresult2 = np.mod(first_array, second_array)\r\nprint(\"Using the mod() function:\", result2)<\/pre>\n<p>This code demonstrates element-wise modulus operations using both the % operator and the mod() function with the first_array and second_array.<\/p>\n<p><strong>Output:<\/strong><br \/>\n<strong>Using the % operator:<\/strong> [1 0 6]<br \/>\n<strong>Using the mod() function:<\/strong> [1 0 6]<\/p>\n<p>As illustrated, both the % operator and the mod() function yield the same result, making it convenient for you to choose the method that suits your coding style.<\/p>\n<p><strong>Arithmetic Operations Table:<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td><span style=\"font-weight: 400;\">Function<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Description<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">add(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Perform element-wise addition.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">reciprocal(x, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate the element-wise reciprocal of a number.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">positive(x, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Obtain the element-wise positive value of a number.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">negative(x, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Determine the element-wise negative value of a number.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">multiply(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Perform element-wise multiplication.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">divide(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Perform element-wise division.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">power(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Raise elements of the first array to the power of the elements in the second array, element-wise.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">subtract(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Perform element-wise subtraction.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">true_divide(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Perform element-wise division, ensuring accurate floating-point results.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">floor_divide(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate the largest integer smaller than or equal to the division of the inputs.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">float_power(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Raise elements of the first array to the power of the elements in the second array, element-wise, with support for floating-point powers.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">fmod(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate the element-wise remainder of division.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">mod(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate the element-wise remainder of division, adhering to specified casting rules.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">modf(x, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Split an array into its fractional and integral parts, element-wise.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">remainder(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate the element-wise remainder of division, following specified casting rules.<\/span><\/td>\n<\/tr>\n<tr>\n<td><span style=\"font-weight: 400;\">divmod(x1, x2, &#8230;)<\/span><\/td>\n<td><span style=\"font-weight: 400;\">Calculate element-wise quotient and remainder simultaneously, with optional output arrays.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>NumPy&#8217;s array arithmetic operations are essential for working with large amounts of numerical data efficiently in Python. This tutorial covers some of the most common arithmetic operations in NumPy, including addition, subtraction, multiplication, division, exponentiation, and modulus.<\/p>\n<p>We show how to perform these operations using both operators and built-in functions, giving you flexibility and versatility in your data manipulation tasks. By mastering these operations, you&#8217;ll be well-prepared to tackle a wide range of numerical computing challenges with NumPy.<\/p>\n<p><strong>In simpler terms:<\/strong><\/p>\n<p>NumPy is a Python library that makes it easy to work with numerical data. Array arithmetic operations are a fundamental part of NumPy, and they allow you to perform complex calculations on large amounts of data quickly and efficiently.<\/p>\n<h3>Conclusion<\/h3>\n<p>This tutorial covered the most common array arithmetic operations in NumPy, and it showed you how to perform them using both operators and built-in functions. By learning how to use these operations, you&#8217;ll be able to tackle a wide range of numerical computing challenges with NumPy.<br \/>\nHappy coding!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Arithmetic operations are fundamental, playing an important role in science and computer applications. In data manipulation and numerical computation, NumPy (Numerical Python) stands out as a powerful library that provides a wide range of&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":447117,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[385],"tags":[5486,383,5485,5488,5286,5487],"class_list":["post-89098","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-numpy-tutorials","tag-arithmetic-operations-in-numpy","tag-learn-numpy","tag-numpy-arithmetic-operations","tag-numpy-arithmetic-operations-with-examples","tag-numpy-tutorials","tag-what-is-arithmetic-operations-in-numpy"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Numpy Arithmetic Operations with Examples - TechVidvan<\/title>\n<meta name=\"description\" content=\"In NumPy array arithmetic operations, it showed you how to perform them using both operators and built-in functions.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Numpy Arithmetic Operations with Examples - TechVidvan\" \/>\n<meta property=\"og:description\" content=\"In NumPy array arithmetic operations, it showed you how to perform them using both operators and built-in functions.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/\" \/>\n<meta property=\"og:site_name\" content=\"TechVidvan\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/TechVidvan\/\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-22T12:30:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-22T13:11:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"TechVidvan Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:site\" content=\"@vidvantech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TechVidvan Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Numpy Arithmetic Operations with Examples - TechVidvan","description":"In NumPy array arithmetic operations, it showed you how to perform them using both operators and built-in functions.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/","og_locale":"en_US","og_type":"article","og_title":"Numpy Arithmetic Operations with Examples - TechVidvan","og_description":"In NumPy array arithmetic operations, it showed you how to perform them using both operators and built-in functions.","og_url":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/","og_site_name":"TechVidvan","article_publisher":"https:\/\/www.facebook.com\/TechVidvan\/","article_published_time":"2024-04-22T12:30:54+00:00","article_modified_time":"2024-04-22T13:11:51+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp","type":"image\/webp"}],"author":"TechVidvan Team","twitter_card":"summary_large_image","twitter_creator":"@vidvantech","twitter_site":"@vidvantech","twitter_misc":{"Written by":"TechVidvan Team","Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#article","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/"},"author":{"name":"TechVidvan Team","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22"},"headline":"Numpy Arithmetic Operations with Examples","datePublished":"2024-04-22T12:30:54+00:00","dateModified":"2024-04-22T13:11:51+00:00","mainEntityOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/"},"wordCount":1114,"commentCount":0,"publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp","keywords":["arithmetic operations in numpy","learn numpy","numpy arithmetic operations","numpy arithmetic operations with examples","numpy tutorials","what is arithmetic operations in numpy"],"articleSection":["NumPy Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/","url":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/","name":"Numpy Arithmetic Operations with Examples - TechVidvan","isPartOf":{"@id":"https:\/\/techvidvan.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#primaryimage"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#primaryimage"},"thumbnailUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp","datePublished":"2024-04-22T12:30:54+00:00","dateModified":"2024-04-22T13:11:51+00:00","description":"In NumPy array arithmetic operations, it showed you how to perform them using both operators and built-in functions.","breadcrumb":{"@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#primaryimage","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/10\/numpy-arithmetic-operations.webp","width":1200,"height":628,"caption":"numpy arithmetic operations"},{"@type":"BreadcrumbList","@id":"https:\/\/techvidvan.com\/tutorials\/numpy-arithmetic-operations\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/techvidvan.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Numpy Arithmetic Operations with Examples"}]},{"@type":"WebSite","@id":"https:\/\/techvidvan.com\/tutorials\/#website","url":"https:\/\/techvidvan.com\/tutorials\/","name":"TechVidvan Blogs","description":"","publisher":{"@id":"https:\/\/techvidvan.com\/tutorials\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/techvidvan.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/techvidvan.com\/tutorials\/#organization","name":"TechVidvan","url":"https:\/\/techvidvan.com\/tutorials\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/","url":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","contentUrl":"https:\/\/techvidvan.com\/tutorials\/wp-content\/uploads\/2024\/03\/techvidvan-logo-200x50-1.webp","width":200,"height":50,"caption":"TechVidvan"},"image":{"@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/TechVidvan\/","https:\/\/x.com\/vidvantech"]},{"@type":"Person","@id":"https:\/\/techvidvan.com\/tutorials\/#\/schema\/person\/e9c26e74dd3d87421f7ada9433b8cd22","name":"TechVidvan Team","description":"The TechVidvan Team delivers practical, beginner-friendly tutorials on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our experts are here to help you upskill and excel in today\u2019s tech industry."}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89098","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/comments?post=89098"}],"version-history":[{"count":0,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/posts\/89098\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media\/447117"}],"wp:attachment":[{"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/media?parent=89098"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/categories?post=89098"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/techvidvan.com\/tutorials\/wp-json\/wp\/v2\/tags?post=89098"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}