{"id":1917,"date":"2024-09-02T17:46:45","date_gmt":"2024-09-02T16:46:45","guid":{"rendered":"https:\/\/blog.univ-angers.fr\/mathsinfo\/?p=1917"},"modified":"2024-09-02T18:01:04","modified_gmt":"2024-09-02T17:01:04","slug":"quelques-programmes-pour-les-casio-fx-180p","status":"publish","type":"post","link":"https:\/\/blog.univ-angers.fr\/mathsinfo\/2024\/09\/02\/quelques-programmes-pour-les-casio-fx-180p\/","title":{"rendered":"Quelques programmes pour les CASIO fx-180P"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"D\u00e9couvrons et programmons : CASIO fx-180P (1985)\" width=\"584\" height=\"329\" src=\"https:\/\/www.youtube.com\/embed\/a0UdRmO7BEU?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption class=\"wp-element-caption\">Pr\u00e9sentation g\u00e9n\u00e9rale<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Quelques mod\u00e8les de ma collection<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"512\" src=\"https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-1024x512.png\" alt=\"\" class=\"wp-image-1919\" srcset=\"https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-1024x512.png 1024w, https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-300x150.png 300w, https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-768x384.png 768w, https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-1536x768.png 1536w, https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image-500x250.png 500w, https:\/\/blog.univ-angers.fr\/mathsinfo\/files\/2024\/09\/image.png 1984w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">fx-180P, 180Pv, 180PA et 180P Plus<\/figcaption><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Autre version du programme Syracuse<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Pas\tTouches\n01\t2\n02\tKin \u00f7 1\t\t# n \/ 2\n03\tKout 1\n04\t-\n05\t1\n06\tKin + 3 \t# TOF = TOF + 1\n07\t=\n08\t1\/x\t\t# Si n = 1 arr\u00eat sur une erreur\n09\tKout 1\n10\t-\n11\tRND\t\t# Partie enti\u00e8re quand on est en FIX 0\n12\t+\n13\t.\n14\t5\n15\t=\t\t# Si n est pair on obtient 1 et 0 sinon\n16\tx &gt; 0\t\t# Retour pas n\u00b01 si n pair\n17\t6\t\t# Sinon...\n18\tKin \u00d7 1\n19\t1\n20\tKin + 1\t\t# 3n+1\n21\tKout 1\n22\tx \u2264 M\t\t# Si n &lt;= max retour au pas n\u00b01\n23\tMin\t\t# sinon mise \u00e0 jour du max\n24\tx &gt; 0\t\t<\/code><\/pre>\n\n\n\n<p>Exemple d&rsquo;utilisation pour N = 27 puis N = 17 :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>MODE FIX 0\nKAC\n27 Min Kin 1 P1\n\nLe programme s'arr\u00eate sur -E-\nAC puis MR pour voir le maximum (9232) et Kout 3 pour le temps de vol (111)\n\nPour un autre calcul faire : \nKAC\n17 Min Kin 1 P1\nR\u00e9sultats : max = 52 et TOF = 12<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">D\u00e9composition d&rsquo;un entier en facteurs premiers<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>Programme P1 :\n\n001\tMin\n002\t1\n003\tKin 1\n004\tMode 7 0    # Fix 0\n\nProgramme P2 :\n\n001\tMR\n002\t\u00f7\n003\t1\n004\tKin + 1\n005\tKout 1\n006\t-\n007\tRND\n008\t=\n009\tx &gt; 0\n010\t+\/-\n011\tx &gt; 0       # Cela revient \u00e0 tester x \u2260 0\n012\tKout 1\n013\tHLT\n014\t1\/x\n015\t\u00d7\n016\tMR\n017\t=\n018\tMin\n019\t1\n020\tKin - 1\n021\tKout 1\n022\tx \u2264 M\n023\tAC\n<\/code><\/pre>\n\n\n\n<p>Utilisation : D\u00e9composition de <strong>2024<\/strong> en facteurs premiers<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2024 P1\nP2\nAffichage : 2\nRUN\nAffichage : 2\nRUN\nAffichage : 2\nRUN\nAffichage : 11\nRUN\nAffichage : 23\nRUN\n0\n\nDonc 2024 = 2 \u00d7 2 \u00d7 2 \u00d7 11 \u00d7 23<\/code><\/pre>\n\n\n\n<p>Lorsque le nombre est premier :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>13 P1\nP2\nAffichage : 13\nRUN\n0<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Quelques mod\u00e8les de ma collection Autre version du programme Syracuse Exemple d&rsquo;utilisation pour N = 27 puis N = 17 : D\u00e9composition d&rsquo;un entier en facteurs premiers Utilisation : D\u00e9composition de 2024 en facteurs premiers Lorsque le nombre est premier &hellip; <a href=\"https:\/\/blog.univ-angers.fr\/mathsinfo\/2024\/09\/02\/quelques-programmes-pour-les-casio-fx-180p\/\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":4913,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1917","post","type-post","status-publish","format-standard","hentry","category-youtube"],"_links":{"self":[{"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/posts\/1917","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/users\/4913"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/comments?post=1917"}],"version-history":[{"count":10,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/posts\/1917\/revisions"}],"predecessor-version":[{"id":1928,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/posts\/1917\/revisions\/1928"}],"wp:attachment":[{"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/media?parent=1917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/categories?post=1917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.univ-angers.fr\/mathsinfo\/wp-json\/wp\/v2\/tags?post=1917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}