{"id":1582,"date":"2024-06-07T16:18:16","date_gmt":"2024-06-07T15:18:16","guid":{"rendered":"https:\/\/ibex.tech\/c\/?p=1582"},"modified":"2026-06-17T09:25:03","modified_gmt":"2026-06-17T08:25:03","slug":"power-of","status":"publish","type":"post","link":"https:\/\/ibex.tech\/c\/c\/maths\/power-of","title":{"rendered":"Power of"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">To the power of<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Note that in math notation ^ is used, but it can&#8217;t be used in C because it&#8217;s used as a bitwise operator.<\/em><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Mathematics] x<sup>y<\/sup> = pow(x, y) [In programming]<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>#include &lt;math.h>\n\n\/\/Use the following function:\n\/\/For a double: double pow(double x, double y);\n\/\/For a float: float powf(float x, float y);\n\n\tdouble MyDouble = pow(2,4);  \n\tMyDouble will be the resul of 2^4 = 16 (in math notation)\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>To the power of Note that in math notation ^ is used, but it can&#8217;t be used in C because it&#8217;s used as a bitwise operator. [Mathematics] xy = pow(x, y) [In programming]<\/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-1582","post","type-post","status-publish","format-standard","hentry","category-maths"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1582","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=1582"}],"version-history":[{"count":3,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1582\/revisions"}],"predecessor-version":[{"id":1586,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/posts\/1582\/revisions\/1586"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/media?parent=1582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/categories?post=1582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/c\/wp-json\/wp\/v2\/tags?post=1582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}