{"id":32,"date":"2010-06-09T08:57:55","date_gmt":"2010-06-09T08:57:55","guid":{"rendered":"http:\/\/www.electronic-products-development.com\/?p=32"},"modified":"2026-06-17T09:25:03","modified_gmt":"2026-06-17T08:25:03","slug":"exponent","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/maths\/exponent","title":{"rendered":"Exponent"},"content":{"rendered":"<p>^ is the character for Exponent (EXP on a calculator)<\/p>\n<p>In C you use pow()<\/p>\n<pre><code>\tpow(base, exponent)<\/code><\/pre>\n<p>In C you can use exponents in two places. Firstly, where numbers are so large or so small that decimal point notation is not human-readable. For instance 100,000,000,000 is best written as 1 * 10 ^11. Secondly where the program logic calls for a value to be raised to the power of another value.<\/p>\n<p>For instance, say you have a virus multiplying in a large population, and each infected person infects another five on average before dying. How many people will be infected after N rounds? The answer is 5^N, or, in C, pow(5.0, N).<\/p>\n<p>For mathematical reasons which are too involved to go into here the expression e^x has special characteristics, so it has its own function, exp(). The expression x^0.5, or sqrt(x) is also special and has its own function &#8211; here it is easy for a non-mathematician to see the value of this.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>^ is the character for Exponent (EXP on a calculator) In C you use pow() pow(base, exponent) In C you can use exponents in two places. Firstly, where numbers are so large or so small that decimal point notation is not human-readable. For instance 100,000,000,000 is best written as 1 * 10 ^11. Secondly where [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-maths"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"predecessor-version":[{"id":564,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/32\/revisions\/564"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}