{"id":154160,"date":"2022-03-25T23:13:33","date_gmt":"2022-03-25T17:43:33","guid":{"rendered":"https:\/\/infinitylearn.com\/surge\/differences-between-codomain-and-range-explanation-with-example\/"},"modified":"2023-01-10T18:16:01","modified_gmt":"2023-01-10T12:46:01","slug":"differences-between-codomain-and-range-explanation-with-example","status":"publish","type":"post","link":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/","title":{"rendered":"Differences Between Codomain and Range \u2013 Explanation with Example"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_37 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" style=\"display: none;\"><label for=\"item\" aria-label=\"Table of Content\"><span style=\"display: flex;align-items: center;width: 35px;height: 30px;justify-content: center;\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/label><input type=\"checkbox\" id=\"item\"><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' style='display:block'><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Codomain_and_Range_in_Mathematics\" title=\"Codomain and Range in Mathematics\">Codomain and Range in Mathematics<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Function_Explained_with_Example\" title=\"Function Explained with Example\">Function Explained with Example<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Domain\" title=\"Domain\">Domain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Codomain\" title=\"Codomain\">Codomain<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Range\" title=\"Range\">Range<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Domain_and_Range\" title=\"Domain and Range\">Domain and Range<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Types_of_Functions\" title=\"Types of Functions\">Types of Functions<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#Difference_between_Codomain_Vs_Range\" title=\"Difference between Codomain Vs Range\">Difference between Codomain Vs Range<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Codomain_and_Range_in_Mathematics\"><\/span>Codomain and Range in Mathematics<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In mathematics, the codomain of a function is the set of all outputs that the function can produce, while the range is the set of all input values the function can take. In other words, the codomain is the set of all &#8220;possible&#8221; outputs of a function, while the range is the set of all &#8220;possible&#8221; inputs to a function.<\/p>\n<p><img loading=\"lazy\" class=\"aligncenter wp-image-154159 size-medium\" src=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example-300x212.jpg\" alt=\"Differences Between Codomain and Range\" width=\"300\" height=\"212\" srcset=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example-300x212.jpg?v=1648230210 300w, https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example.jpg?v=1648230210 606w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Function_Explained_with_Example\"><\/span>Function Explained with Example<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>A function is a collection of statements that performs a specific task. Functions are written in the C programming language using the keyword<\/p>\n<p>The following is an example of a function that calculates the average of three numbers:<\/p>\n<p>int average(int num1, int num2, int num3)<\/p>\n<p>{<\/p>\n<p>int sum = num1 + num2 + num3;<\/p>\n<p>return (sum \/ 3);<\/p>\n<p>}<\/p>\n<p>This function takes three integers as input and calculates the average of those numbers. The function is written in C and returns an integer value.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Domain\"><\/span>Domain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>-Specific Languages<\/p>\n<p>Domain-Specific Languages (DSLs) are computer languages specifically designed to solve problems in a particular domain. DSLs can be more concise and specific than general-purpose languages, making them better suited for certain tasks.<\/p>\n<p>Domain-specific languages are often created by wrapping an existing general-purpose language in a library or toolkit. This provides a convenient way to access the language&#8217;s features while still keeping the code readable and maintainable.<\/p>\n<p>Domain-specific languages are also sometimes referred to as &#8220;mini-languages.&#8221;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Codomain\"><\/span>Codomain<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In mathematics, the codomain is the set of all the outputs that can be produced by a function. It is the set for which the function assigns a unique value.<\/p>\n<p>For example, the codomain of the function &#8220;f&#8221;(&#8220;x&#8221;) = &#8220;x&#8221; + 2 is the set of all real numbers, because for every input &#8220;x&#8221; there is a unique output &#8220;f&#8221;(&#8220;x&#8221;) that corresponds to it.<\/p>\n<p>The codomain is also known as the range of a function.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Range\"><\/span>Range<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>in yards:<\/p>\n<p>0-5<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Domain_and_Range\"><\/span>Domain and Range<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Domain:<\/p>\n<p>The domain of a function is the set of all input values for which the function produces a result.<\/p>\n<p>Range:<\/p>\n<p>The range of a function is the set of all output values for which the function produces a result.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Types_of_Functions\"><\/span>Types of Functions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>There are three main types of functions:<\/p>\n<p>1. Linear Functions<br \/>\n2. Quadratic Functions<br \/>\n3. Exponential Functions<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Difference_between_Codomain_Vs_Range\"><\/span>Difference between Codomain Vs Range<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Codomain is the set of all the outputs that a function can produce. Range is the set of all the inputs that a function can take.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Codomain and Range in Mathematics In mathematics, the codomain of a function is the set of all outputs that the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"Differences Between Codomain and Range","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.","custom_permalink":"maths\/differences-between-codomain-and-range\/"},"categories":[13],"tags":[],"table_tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Differences Between Codomain and Range \u2013 Explanation with Example - Infinity Learn by Sri Chaitanya<\/title>\n<meta name=\"description\" content=\"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Differences Between Codomain and Range \u2013 Explanation with Example - Infinity Learn by Sri Chaitanya\" \/>\n<meta property=\"og:description\" content=\"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/\" \/>\n<meta property=\"og:site_name\" content=\"Infinity Learn by Sri Chaitanya\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-25T17:43:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-01-10T12:46:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example-300x212.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InfinityLearn_\" \/>\n<meta name=\"twitter:site\" content=\"@InfinityLearn_\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"vipin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Differences Between Codomain and Range \u2013 Explanation with Example - Infinity Learn by Sri Chaitanya","description":"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.","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:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/","og_locale":"en_US","og_type":"article","og_title":"Differences Between Codomain and Range \u2013 Explanation with Example - Infinity Learn by Sri Chaitanya","og_description":"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.","og_url":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/","og_site_name":"Infinity Learn by Sri Chaitanya","article_publisher":"https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/","article_published_time":"2022-03-25T17:43:33+00:00","article_modified_time":"2023-01-10T12:46:01+00:00","og_image":[{"url":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example-300x212.jpg"}],"twitter_card":"summary_large_image","twitter_creator":"@InfinityLearn_","twitter_site":"@InfinityLearn_","twitter_misc":{"Written by":"vipin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/infinitylearn.com\/surge\/#organization","name":"Infinity Learn","url":"https:\/\/infinitylearn.com\/surge\/","sameAs":["https:\/\/www.facebook.com\/InfinityLearn.SriChaitanya\/","https:\/\/www.instagram.com\/infinitylearn_by_srichaitanya\/","https:\/\/www.linkedin.com\/company\/infinity-learn-by-sri-chaitanya\/","https:\/\/www.youtube.com\/c\/InfinityLearnEdu","https:\/\/twitter.com\/InfinityLearn_"],"logo":{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/#logo","inLanguage":"en-US","url":"","contentUrl":"","caption":"Infinity Learn"},"image":{"@id":"https:\/\/infinitylearn.com\/surge\/#logo"}},{"@type":"WebSite","@id":"https:\/\/infinitylearn.com\/surge\/#website","url":"https:\/\/infinitylearn.com\/surge\/","name":"Infinity Learn by Sri Chaitanya","description":"Surge","publisher":{"@id":"https:\/\/infinitylearn.com\/surge\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/infinitylearn.com\/surge\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#primaryimage","inLanguage":"en-US","url":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example.jpg?v=1648230210","contentUrl":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example.jpg?v=1648230210","width":606,"height":428},{"@type":"WebPage","@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#webpage","url":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/","name":"Differences Between Codomain and Range \u2013 Explanation with Example - Infinity Learn by Sri Chaitanya","isPartOf":{"@id":"https:\/\/infinitylearn.com\/surge\/#website"},"primaryImageOfPage":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#primaryimage"},"datePublished":"2022-03-25T17:43:33+00:00","dateModified":"2023-01-10T12:46:01+00:00","description":"Learn about Differences Between Codomain and Range topic of Maths in details explained by subject experts on infinitylearn.com.","breadcrumb":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/infinitylearn.com\/surge\/"},{"@type":"ListItem","position":2,"name":"Differences Between Codomain and Range \u2013 Explanation with Example"}]},{"@type":"Article","@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#article","isPartOf":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#webpage"},"author":{"@id":"https:\/\/infinitylearn.com\/surge\/#\/schema\/person\/d931698bc4645b2739855720864f30e2"},"headline":"Differences Between Codomain and Range \u2013 Explanation with Example","datePublished":"2022-03-25T17:43:33+00:00","dateModified":"2023-01-10T12:46:01+00:00","mainEntityOfPage":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#webpage"},"wordCount":402,"publisher":{"@id":"https:\/\/infinitylearn.com\/surge\/#organization"},"image":{"@id":"https:\/\/infinitylearn.com\/surge\/maths\/differences-between-codomain-and-range\/#primaryimage"},"thumbnailUrl":"https:\/\/infinitylearn.com\/surge\/wp-content\/uploads\/2022\/03\/differences-between-codomain-and-range-explanation-with-example-300x212.jpg","articleSection":["Maths"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/infinitylearn.com\/surge\/#\/schema\/person\/d931698bc4645b2739855720864f30e2","name":"vipin","image":{"@type":"ImageObject","@id":"https:\/\/infinitylearn.com\/surge\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/c9a84adf9d11e7ad01332089c3e52538?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c9a84adf9d11e7ad01332089c3e52538?s=96&d=mm&r=g","caption":"vipin"},"sameAs":["http:\/\/surge.infinitylearn.com"],"url":"https:\/\/infinitylearn.com\/surge\/author\/vipin\/"}]}},"_links":{"self":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts\/154160"}],"collection":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/comments?post=154160"}],"version-history":[{"count":0,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/posts\/154160\/revisions"}],"wp:attachment":[{"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/media?parent=154160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/categories?post=154160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/tags?post=154160"},{"taxonomy":"table_tags","embeddable":true,"href":"https:\/\/infinitylearn.com\/surge\/wp-json\/wp\/v2\/table_tags?post=154160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}