{"id":496,"date":"2020-05-06T09:15:13","date_gmt":"2020-05-06T06:15:13","guid":{"rendered":"https:\/\/ek.oa.edu.ua\/Kukhta\/test3\/?p=496"},"modified":"2020-05-06T09:15:13","modified_gmt":"2020-05-06T06:15:13","slug":"matematychni-operatory-i-matematychni-funktsii-php","status":"publish","type":"post","link":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/matematychni-operatory-i-matematychni-funktsii-php\/","title":{"rendered":"\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0456 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0438 \u0456 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457 PHP"},"content":{"rendered":"<p>\u0427\u0438\u0441\u043b\u043e\u0432\u0456 \u0434\u0430\u043d\u0456 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0456\u0432 PHP :<\/p>\n<p>+ \u0441\u0443\u043c\u0430 \u0434\u0432\u043e\u0445 \u0447\u0438\u0441\u0435\u043b<br \/>\n&#8211; \u0440\u0456\u0437\u043d\u0438\u0446\u044f \u0447\u0438\u0441\u0435\u043b<br \/>\n\/ \u0447\u0430\u0441\u0442\u043a\u0430 \u0432\u0456\u0434 \u0434\u0456\u043b\u0435\u043d\u043d\u044f \u0434\u0432\u043e\u0445 \u0447\u0438\u0441\u0435\u043b<br \/>\n% \u0437\u0430\u043b\u0438\u0448\u043e\u043a \u0432\u0456\u0434 \u0434\u0456\u043b\u0435\u043d\u043d\u044f<\/p>\n<pre class=\"prettyprint linenums\">&lt;?php\r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"2 + 2 = \"<\/span>, <span class=\"hljs-number\">2<\/span> + <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>; \r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"5 - 2 = \"<\/span>, <span class=\"hljs-number\">5<\/span> - <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>; \r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"10 * 10 = \"<\/span>, <span class=\"hljs-number\">10<\/span> * <span class=\"hljs-number\">10<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>; \r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"100 \/ 2 = \"<\/span>, <span class=\"hljs-number\">100<\/span> \/ <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>; \r\n<span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"10 % 2 = \"<\/span>, <span class=\"hljs-number\">10<\/span> % <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>;\r\n?&gt;<\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456:<\/p>\n<pre class=\"result\">2 + 2 = 4 \r\n5 - 2 = 3\r\n10 * 10 = 100\r\n100 \/ 2 = 50\r\n10 % 2 = 0<\/pre>\n<h3><strong>\u041c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u043d\u0456 \u0444\u0443\u043d\u043a\u0446\u0456\u0457<br \/>\n<\/strong><\/h3>\n<ul>\n<li><strong>Abs<\/strong>. \u041c\u043e\u0434\u0443\u043b\u044c \u0447\u0438\u0441\u043b\u0430.<\/li>\n<li><strong>Sin<\/strong>. \u0421\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Sinh<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u0441\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Cos<\/strong>. \u041a\u043e\u0441\u0438\u043d\u0443\u0441<\/li>\n<li><strong>Cosh<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u043a\u043e\u0441\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Acos<\/strong>. \u0410\u0440\u043a\u043a\u043e\u0441\u0438\u043d\u0443\u0441<\/li>\n<li><strong>Acosh<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u0430\u0440\u043a\u043a\u043e\u0441\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Asin<\/strong>. \u0410\u0440\u043a\u0441\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Asinh<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u0430\u0440\u043a\u0441\u0438\u043d\u0443\u0441.<\/li>\n<li><strong>Atan2<\/strong>. \u0410\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441 \u0447\u0430\u0441\u0442\u043a\u0438 \u0434\u0432\u043e\u0445 \u0437\u043c\u0456\u043d\u043d\u0438\u0445.<\/li>\n<li><strong>Tan<\/strong>. \u0422\u0430\u043d\u0433\u0435\u043d\u0441.<\/li>\n<li><strong>Tanh<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u0442\u0430\u043d\u0433\u0435\u043d\u0441.<\/li>\n<li><strong>Atan<\/strong>. \u0410\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441.<\/li>\n<li><strong>Atan<\/strong>. \u0413\u0456\u043f\u0435\u0440\u0431\u043e\u043b\u0456\u0447\u043d\u0438\u0439 \u0430\u0440\u043a\u0442\u0430\u043d\u0433\u0435\u043d\u0441<\/li>\n<li><strong>Base_convert<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u043e\u0432\u043e\u043c\u0443 \u0443\u044f\u0432\u043b\u0435\u043d\u043d\u0456 \u0437 \u043e\u0434\u043d\u0456\u0454\u0457 \u0441\u0438\u0441\u0442\u0435\u043c\u0438<br \/>\n\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f \u0432 \u0456\u043d\u0448\u0443.<\/li>\n<li><strong>Decoct<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0447\u0438\u0441\u043b\u0430 \u0443 \u0432\u0456\u0441\u0456\u043c\u043a\u043e\u0432\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044f \u0443 \u0432\u0438\u0433\u043b\u044f\u0434\u0456 \u0440\u044f\u0434\u043a\u0430.<\/li>\n<li><strong>Bindec<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0440\u044f\u0434\u043a\u0430, \u0434\u0430\u043d\u043e\u0433\u043e \u0432 \u0434\u0432\u0456\u0439\u043a\u043e\u0432\u043e\u043c\u0443 \u0447\u0438\u0441\u043b\u0456, \u0432 \u0446\u0456\u043b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f.<\/li>\n<li><strong>Octdec<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0440\u044f\u0434\u043a\u0430, \u0449\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0454 \u0432\u0456\u0441\u0456\u043c\u043a\u043e\u0432\u0435 \u0447\u0438\u0441\u043b\u043e, \u0432 \u0446\u0456\u043b\u0435 \u0447\u0438\u0441\u043b\u043e.<\/li>\n<li><strong>Hexdec<\/strong>. \u041f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0440\u044f\u0434\u043a\u0430, \u0449\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0454 \u0448\u0456\u0441\u0442\u043d\u0430\u0434\u0446\u044f\u0442\u0438\u0440\u0438\u0447\u043d\u0435 \u0447\u0438\u0441\u043b\u043e, \u0432 \u0446\u0456\u043b\u0435 \u0447\u0438\u0441\u043b\u043e.<\/li>\n<li><strong>Ceil<\/strong>. \u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044f \u0447\u0438\u0441\u043b\u0430 \u0443 \u0431\u0456\u043b\u044c\u0448\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443.<\/li>\n<li><strong>Floor<\/strong>. \u041e\u043a\u0440\u0443\u0433\u043b\u0435\u043d\u043d\u044f \u0447\u0438\u0441\u043b\u0430 \u0432 \u043c\u0435\u043d\u0448\u0443 \u0441\u0442\u043e\u0440\u043e\u043d\u0443.<\/li>\n<li><strong>Deg2rad<\/strong>. \u0413\u0440\u0430\u0434\u0443\u0441\u0438 \u0432 \u0440\u0430\u0434\u0456\u0430\u043d\u0438.<\/li>\n<li><strong>Exp<\/strong>. \u041e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f \u0435\u043a\u0441\u043f\u043e\u043d\u0435\u043d\u0442\u0438 \u0447\u0438\u0441\u043b\u0430.<\/li>\n<li><strong>Fmod<\/strong>. \u0417\u0430\u043b\u0438\u0448\u043e\u043a \u0432\u0456\u0434 \u0434\u0456\u043b\u0435\u043d\u043d\u044f \u0434\u0432\u043e\u0445 \u0447\u0438\u0441\u0435\u043b.<\/li>\n<li><strong>Getrandmax<\/strong>. \u041c\u0430\u043a\u0441. \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u044f\u043a\u0435 \u043e\u0442\u0440\u0438\u043c\u0443\u044e\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0456\u0454\u044e <em><strong>rand()<\/strong><\/em><\/li>\n<li><strong>Hypot<\/strong>. \u041e\u0431\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044f \u0433\u0456\u043f\u043e\u0442\u0435\u043d\u0443\u0437\u0438 \u043f\u043e \u0434\u0432\u043e\u0445 \u043a\u0430\u0442\u0435\u0442\u0430\u0445.<\/li>\n<li><strong>Is_finite<\/strong>. \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u043c \u0432\u0435\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c.<\/li>\n<li><strong>Is_infinite<\/strong>. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430, \u0447\u0438 \u0454 \u0447\u0438\u0441\u043b\u043e \u043d\u0435\u0441\u043a\u0456\u043d\u0447\u0435\u043d\u043d\u0456\u0441\u0442\u044e.<\/li>\n<li><strong>Is_nan<\/strong>. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u043a\u0430, \u0447\u0438 \u0454 \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u041d\u0435 \u0447\u0438\u0441\u043b\u043e\u043c(Not-A-Number).<\/li>\n<li><strong>Lcg_value<\/strong>. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0440\u0430\u043d\u0434\u043e\u043c\u043d\u0438\u0445 \u0447\u0438\u0441\u0435\u043b.<\/li>\n<li><strong>Log10<\/strong>. \u0414\u0435\u0441\u044f\u0442\u043a\u043e\u0432\u0438\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c.<\/li>\n<li><strong>Log<\/strong>. \u041d\u0430\u0442\u0443\u0440\u0430\u043b\u044c\u043d\u0438\u0439 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c.<\/li>\n<li><strong>Max<\/strong>. \u041c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0445 \u0447\u0438\u0441\u0435\u043b.<\/li>\n<li><strong>Min<\/strong>. \u041c\u0456\u043d\u0456\u043c\u0443\u043c \u0437\u0430\u0434\u0430\u043d\u0438\u0445 \u0447\u0438\u0441\u0435\u043b.<\/li>\n<li><strong>Mt_getrandmax<\/strong>. \u041c\u0430\u043a\u0441. \u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044f, \u044f\u043a\u0435 \u043c\u043e\u0436\u043d\u0430 \u043e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0444\u0443\u043d\u043a\u0446\u0456\u0454\u044e <em><strong>mt_rand<\/strong><\/em>.<\/li>\n<li><strong>Mt_rand<\/strong>. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0441\u0435\u0432\u0434\u043e\u0432\u0438\u043f\u0430\u0434\u043a\u043e\u0432\u0438\u0445 \u0447\u0438\u0441\u0435\u043b \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443.<\/li>\n<li><strong>Pi<\/strong>. \u0417\u043d\u0430\u0447\u0435\u043d\u043d\u044f \u0447\u0438\u0441\u043b\u0430 \u03c0.<\/li>\n<li><strong>Pow<\/strong>. \u041f\u0456\u0434\u043d\u0435\u0441\u0435\u043d\u043d\u044f \u0434\u043e \u0441\u0442\u0435\u043f\u0435\u043d\u044f.<\/li>\n<li><strong>Round<\/strong>. \u041e\u043a\u0440\u0443\u0433\u043b\u044e\u0454 \u0447\u0438\u0441\u043b\u043e \u0442\u0438\u043f\u0443 float.<\/li>\n<li><strong>Sqrt<\/strong>. \u041a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u0438\u0439 \u043a\u043e\u0440\u0456\u043d\u044c.<\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\"><span class=\"hljs-preprocessor\">&lt;?php\r\n<\/span><span class=\"hljs-keyword\">echo<\/span> <span class=\"hljs-string\">\"round(4.2) = \"<\/span>, round(<span class=\"hljs-number\">4.2<\/span>), <span class=\"hljs-string\">\"&lt;br&gt;\"<\/span>;\r\n<span class=\"hljs-preprocessor\">?&gt;<\/span><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456:<\/p>\n<pre class=\"result\">round(4.2) = 4<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0438\u0441\u043b\u043e\u0432\u0456 \u0434\u0430\u043d\u0456 \u043e\u0431\u0440\u043e\u0431\u043b\u044f\u044e\u0442\u044c\u0441\u044f \u0437\u0430 \u0434\u043e\u043f\u043e\u043c\u043e\u0433\u043e\u044e \u0442\u0430\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0456\u0432 PHP : + \u0441\u0443\u043c\u0430 \u0434\u0432\u043e\u0445 \u0447\u0438\u0441\u0435\u043b &#8211; \u0440\u0456\u0437\u043d\u0438\u0446\u044f \u0447\u0438\u0441\u0435\u043b \/ \u0447\u0430\u0441\u0442\u043a\u0430 \u0432\u0456\u0434 \u0434\u0456\u043b\u0435\u043d\u043d\u044f \u0434\u0432\u043e\u0445 \u0447\u0438\u0441\u0435\u043b % \u0437\u0430\u043b\u0438\u0448\u043e\u043a \u0432\u0456\u0434 \u0434\u0456\u043b\u0435\u043d\u043d\u044f &lt;?php echo &#8220;2 + 2 = &#8220;, 2 + 2, &#8220;&lt;br&gt;&#8221;; echo &#8220;5 &#8211; 2 = &#8220;, 5 &#8211; 2, &#8220;&lt;br&gt;&#8221;; echo &#8220;10 * 10 = &#8220;, 10 * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-496","post","type-post","status-publish","format-standard","hentry","category-operatory"],"_links":{"self":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/496","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/comments?post=496"}],"version-history":[{"count":1,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/496\/revisions"}],"predecessor-version":[{"id":497,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/posts\/496\/revisions\/497"}],"wp:attachment":[{"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/media?parent=496"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/categories?post=496"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ithub.oa.edu.ua\/webdev\/php\/wp-json\/wp\/v2\/tags?post=496"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}