{"id":35,"date":"2014-07-16T08:35:47","date_gmt":"2014-07-16T06:35:47","guid":{"rendered":"http:\/\/www.prime.il.pw.edu.pl\/?page_id=35"},"modified":"2015-12-28T18:16:14","modified_gmt":"2015-12-28T17:16:14","slug":"identyfikatory-i-etykiety","status":"publish","type":"page","link":"https:\/\/www.prime.il.pw.edu.pl\/?page_id=35","title":{"rendered":"Zasady oblicze\u0144 numerycznych"},"content":{"rendered":"<p><strong>Prime <\/strong>poza operacjami, kt\u00f3re potrafi wykona\u0107 kalkulator czyli obliczeniami na liczbach i warto\u015bciach wbudowanych funkcji, co zosta\u0142o om\u00f3wione w poprzednim rozdziale, pozwala tak\u017ce na <strong>definiowanie <\/strong>r\u00f3\u017cnych rodzaj\u00f3w <strong>zmiennych <\/strong>i <strong>funkcji <\/strong>i prowadzenie na nich oblicze\u0144. <strong>Nazwy <\/strong>zmiennych, funkcji, sta\u0142ych czy te\u017c jednostek okre\u015blane s\u0105 mianem <strong>identyfikator\u00f3w<\/strong>. Wszystkie prezentowane przyk\u0142adowe obliczenia zosta\u0142y przygotowane w osobnych arkuszach dla ka\u017cdego z rozdzia\u0142\u00f3w, a w przypadku rozdzia\u0142u dziesi\u0105tego dla podrozdzia\u0142\u00f3w. Warto w tym miejscu podkre\u015bli\u0107 zasad\u0119 czytania arkusza przez <strong>Prime<\/strong>. Regiony s\u0105 odczytywane w naturalny spos\u00f3b czyli od lewej do prawej a nast\u0119pnie wiersz po wierszu.<\/p>\n<p><a id=\"69dffb3fc00b2\" rel=\"wp-video-lightbox\" href=\"https:\/\/www.youtube.com\/watch?v=3fwwa_Qcazw&#038;rel=0&#038;width=1280&#038;height=720\" title=\"\">03-01 {9:31} Definiowanie zmiennych i funkcji<\/a>    <script>\r\n    \/* <![CDATA[ *\/\r\n    jQuery(document).ready(function($){\r\n        $(function(){\r\n            var width = $(window).innerWidth();\r\n            var setwidth = parseFloat(1280);\r\n            var ratio = parseFloat(0.5625);\r\n            var height = parseFloat(720);\r\n            var link = 'https:\/\/www.youtube.com\/watch?v=3fwwa_Qcazw&amp;rel=0&amp;width=1280&amp;height=720';\r\n            if(width < setwidth)\r\n            {\r\n                height = Math.floor(width * 0.5625);\r\n                \/\/console.log(\"device width \"+width+\", set width \"+1280+\", ratio \"+0.5625+\", new height \"+ height);\r\n                var new_url = wpvl_paramReplace('width', link, width);\r\n                var new_url = wpvl_paramReplace('height', new_url, height);\r\n                $(\"a#69dffb3fc00b2\").attr('href', new_url);\r\n                \/\/console.log(new_url);\r\n            }\r\n        });\r\n    });\r\n    \/* ]]> *\/\r\n    <\/script><br \/>\n<a id=\"69dffb3fc0161\" rel=\"wp-video-lightbox\" href=\"https:\/\/www.youtube.com\/watch?v=4jimtP84Uuc&#038;rel=0&#038;width=1280&#038;height=720\" title=\"\">03-02 {9:23} Jednostki i zmienne zakresowe<\/a>    <script>\r\n    \/* <![CDATA[ *\/\r\n    jQuery(document).ready(function($){\r\n        $(function(){\r\n            var width = $(window).innerWidth();\r\n            var setwidth = parseFloat(1280);\r\n            var ratio = parseFloat(0.5625);\r\n            var height = parseFloat(720);\r\n            var link = 'https:\/\/www.youtube.com\/watch?v=4jimtP84Uuc&amp;rel=0&amp;width=1280&amp;height=720';\r\n            if(width < setwidth)\r\n            {\r\n                height = Math.floor(width * 0.5625);\r\n                \/\/console.log(\"device width \"+width+\", set width \"+1280+\", ratio \"+0.5625+\", new height \"+ height);\r\n                var new_url = wpvl_paramReplace('width', link, width);\r\n                var new_url = wpvl_paramReplace('height', new_url, height);\r\n                $(\"a#69dffb3fc0161\").attr('href', new_url);\r\n                \/\/console.log(new_url);\r\n            }\r\n        });\r\n    });\r\n    \/* ]]> *\/\r\n    <\/script><br \/>\n<a id=\"69dffb3fc01b7\" rel=\"wp-video-lightbox\" href=\"https:\/\/www.youtube.com\/watch?v=Vbo-R1X3V-g&#038;rel=0&#038;width=1280&#038;height=720\" title=\"\">03-03 {9:44} Wyra\u017cenia logiczne i wykresy 2D<\/a>    <script>\r\n    \/* <![CDATA[ *\/\r\n    jQuery(document).ready(function($){\r\n        $(function(){\r\n            var width = $(window).innerWidth();\r\n            var setwidth = parseFloat(1280);\r\n            var ratio = parseFloat(0.5625);\r\n            var height = parseFloat(720);\r\n            var link = 'https:\/\/www.youtube.com\/watch?v=Vbo-R1X3V-g&amp;rel=0&amp;width=1280&amp;height=720';\r\n            if(width < setwidth)\r\n            {\r\n                height = Math.floor(width * 0.5625);\r\n                \/\/console.log(\"device width \"+width+\", set width \"+1280+\", ratio \"+0.5625+\", new height \"+ height);\r\n                var new_url = wpvl_paramReplace('width', link, width);\r\n                var new_url = wpvl_paramReplace('height', new_url, height);\r\n                $(\"a#69dffb3fc01b7\").attr('href', new_url);\r\n                \/\/console.log(new_url);\r\n            }\r\n        });\r\n    });\r\n    \/* ]]> *\/\r\n    <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prime poza operacjami, kt\u00f3re potrafi wykona\u0107 kalkulator czyli obliczeniami na liczbach i warto\u015bciach wbudowanych funkcji, co zosta\u0142o om\u00f3wione w poprzednim rozdziale, pozwala tak\u017ce na definiowanie r\u00f3\u017cnych rodzaj\u00f3w zmiennych i funkcji i prowadzenie na nich oblicze\u0144. Nazwy zmiennych, funkcji, sta\u0142ych czy te\u017c jednostek okre\u015blane s\u0105 mianem identyfikator\u00f3w. Wszystkie prezentowane przyk\u0142adowe obliczenia zosta\u0142y przygotowane w osobnych arkuszach &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.prime.il.pw.edu.pl\/?page_id=35\" class=\"more-link\">Czytaj dalej<span class=\"screen-reader-text\"> \u201eZasady oblicze\u0144 numerycznych\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":32,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"_links":{"self":[{"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/pages\/35"}],"collection":[{"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=35"}],"version-history":[{"count":8,"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/pages\/35\/revisions"}],"predecessor-version":[{"id":603,"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/pages\/35\/revisions\/603"}],"up":[{"embeddable":true,"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=\/wp\/v2\/pages\/32"}],"wp:attachment":[{"href":"https:\/\/www.prime.il.pw.edu.pl\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=35"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}