{"id":3372,"date":"2023-07-17T20:20:50","date_gmt":"2023-07-17T20:20:50","guid":{"rendered":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/"},"modified":"2023-07-17T20:20:50","modified_gmt":"2023-07-17T20:20:50","slug":"numpy-linspace-vs-arange","status":"publish","type":"post","link":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/","title":{"rendered":"Numpy: np.linspace ve np.arange aras\u0131ndaki fark"},"content":{"rendered":"<p><\/p>\n<hr>\n<p><span style=\"color: #000000;\">Bir de\u011fer dizisi olu\u015fturmaya gelince, <strong>linspace<\/strong> ve <strong>arange<\/strong> yayg\u0131n olarak kullan\u0131lan iki NumPy i\u015flevidir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">\u0130\u015fte iki i\u015flev aras\u0131ndaki ince fark:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><b>linspace<\/b> ad\u0131m <em>say\u0131s\u0131n\u0131<\/em> belirlemenizi sa\u011flar<\/span><\/li>\n<li> <span style=\"color: #000000;\"><b>Arange,<\/b> ad\u0131mlar\u0131n <em>boyutunu<\/em> belirtmenize olanak tan\u0131r<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki \u00f6rnekler her bir fonksiyonun pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 1: np.linspace nas\u0131l kullan\u0131l\u0131r?<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>np.linspace()<\/strong> i\u015flevi a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>np.linspace(ba\u015flat, durdur, say\u0131, \u2026)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>start<\/strong> : Dizinin ba\u015flang\u0131\u00e7 de\u011feri<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>stop<\/strong> : Dizinin biti\u015f de\u011feri<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>num<\/strong> : olu\u015fturulacak de\u011ferlerin say\u0131s\u0131<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, 0 ile 20 aras\u0131nda e\u015fit aral\u0131kl\u0131 11 de\u011fer olu\u015fturmak i\u00e7in <strong>np.linspace()<\/strong> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#create sequence of 11 evenly spaced values between 0 and 20\n<\/span>n.p. <span style=\"color: #3366ff;\">linspace<\/span> (0, 20, 11)\n\narray([ 0., 2., 4., 6., 8., 10., 12., 14., 16., 18., 20.])\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7, 0 ile 20 aras\u0131nda e\u015fit aral\u0131kl\u0131 11 de\u011ferden olu\u015fan bir dizidir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu y\u00f6ntemi kullanarak <strong>np.linspace()<\/strong> , de\u011ferler aras\u0131ndaki mesafeyi otomatik olarak belirler.<\/span><\/p>\n<h2> <span style=\"color: #000000;\"><strong>\u00d6rnek 2: np.arange nas\u0131l kullan\u0131l\u0131r?<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\"><strong>np.arange()<\/strong> i\u015flevi a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullan\u0131r:<\/span><\/p>\n<p> <span style=\"color: #000000;\"><strong>np.arange(ba\u015flat, durdur, ad\u0131m, \u2026)<\/strong><\/span><\/p>\n<p> <span style=\"color: #000000;\">Alt\u0131n:<\/span><\/p>\n<ul>\n<li> <span style=\"color: #000000;\"><strong>start<\/strong> : Dizinin ba\u015flang\u0131\u00e7 de\u011feri<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>stop<\/strong> : Dizinin biti\u015f de\u011feri<\/span><\/li>\n<li> <span style=\"color: #000000;\"><strong>ad\u0131m<\/strong> : De\u011ferler aras\u0131ndaki bo\u015fluk<\/span><\/li>\n<\/ul>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki kod, her de\u011fer aras\u0131ndaki bo\u015flu\u011fun 2 oldu\u011fu 0 ile 20 aras\u0131nda bir de\u011fer dizisi olu\u015fturmak i\u00e7in <strong>np.arange()<\/strong> i\u015flevinin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6sterir:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#create sequence of values between 0 and 20 where spacing is 2\n<\/span>n.p. <span style=\"color: #3366ff;\">arange<\/span> (0, 20, 2)\n\narray([ 0, 2, 4, 6, 8, 10, 12, 14, 16, 18])\n<\/span><\/span><\/strong><\/pre>\n<p> <span style=\"color: #000000;\">Sonu\u00e7, her de\u011fer aras\u0131ndaki bo\u015flu\u011fun 2 oldu\u011fu, 0 ile 20 aras\u0131ndaki bir de\u011ferler dizisidir.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Bu y\u00f6ntemi kullanarak <strong>np.arange()<\/strong> , olu\u015fturulacak de\u011fer say\u0131s\u0131n\u0131 otomatik olarak belirler.<\/span><\/p>\n<p> <span style=\"color: #000000;\">Farkl\u0131 bir ad\u0131m boyutu kullan\u0131rsak (4 gibi), o zaman <strong>np.arange(),<\/strong> olu\u015fturulan toplam de\u011fer say\u0131s\u0131n\u0131 otomatik olarak ayarlayacakt\u0131r:<\/span><\/p>\n<pre style=\"background-color: #ececec; font-size: 15px;\"> <strong><span style=\"color: #008080;\"><span style=\"color: #000000;\"><span style=\"color: #008000;\">import<\/span> numpy <span style=\"color: #008000;\">as<\/span> np\n\n<span style=\"color: #008080;\">#create sequence of values between 0 and 20 where spacing is 4\n<\/span>n.p. <span style=\"color: #3366ff;\">arange<\/span> (0, 20, 4)\n\narray([ 0, 4, 8, 12, 16])\n<\/span><\/span><\/strong><\/pre>\n<h2> <span style=\"color: #000000;\"><strong>Ek kaynaklar<\/strong><\/span><\/h2>\n<p> <span style=\"color: #000000;\">A\u015fa\u011f\u0131daki e\u011fitimlerde Python&#8217;da di\u011fer yayg\u0131n i\u015flemlerin nas\u0131l ger\u00e7ekle\u015ftirilece\u011fi a\u00e7\u0131klanmaktad\u0131r:<\/span><\/p>\n<p> <a href=\"https:\/\/statorials.org\/tr\/numpy-doldurma-dizisi\/\" target=\"_blank\" rel=\"noopener\">NumPy dizisini de\u011ferlerle doldurma<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/numpy-degistir\/\" target=\"_blank\" rel=\"noopener\">NumPy dizisindeki \u00f6\u011feler nas\u0131l de\u011fi\u015ftirilir?<\/a><br \/> <a href=\"https:\/\/statorials.org\/tr\/numpy-sayisi-benzersiz\/\" target=\"_blank\" rel=\"noopener\">NumPy dizisindeki benzersiz de\u011ferler nas\u0131l say\u0131l\u0131r?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Bir de\u011fer dizisi olu\u015fturmaya gelince, linspace ve arange yayg\u0131n olarak kullan\u0131lan iki NumPy i\u015flevidir. \u0130\u015fte iki i\u015flev aras\u0131ndaki ince fark: linspace ad\u0131m say\u0131s\u0131n\u0131 belirlemenizi sa\u011flar Arange, ad\u0131mlar\u0131n boyutunu belirtmenize olanak tan\u0131r A\u015fa\u011f\u0131daki \u00f6rnekler her bir fonksiyonun pratikte nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 g\u00f6stermektedir. \u00d6rnek 1: np.linspace nas\u0131l kullan\u0131l\u0131r? np.linspace() i\u015flevi a\u015fa\u011f\u0131daki temel s\u00f6zdizimini kullan\u0131r: np.linspace(ba\u015flat, durdur, say\u0131, \u2026) [&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-3372","post","type-post","status-publish","format-standard","hentry","category-rehber"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials<\/title>\n<meta name=\"description\" content=\"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials\" \/>\n<meta property=\"og:description\" content=\"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T20:20:50+00:00\" \/>\n<meta name=\"author\" content=\"Dr.benjamin anderson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Dr.benjamin anderson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/\",\"url\":\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/\",\"name\":\"NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/tr\/#website\"},\"datePublished\":\"2023-07-17T20:20:50+00:00\",\"dateModified\":\"2023-07-17T20:20:50+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\"},\"description\":\"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Ev\",\"item\":\"https:\/\/statorials.org\/tr\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numpy: np.linspace ve np.arange aras\u0131ndaki fark\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/tr\/#website\",\"url\":\"https:\/\/statorials.org\/tr\/\",\"name\":\"Statorials\",\"description\":\"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/tr\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"tr\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48\",\"name\":\"Dr.benjamin anderson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"Dr.benjamin anderson\"},\"description\":\"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil\",\"sameAs\":[\"https:\/\/statorials.org\/tr\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials","description":"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/","og_locale":"tr_TR","og_type":"article","og_title":"NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials","og_description":"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","og_url":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/","og_site_name":"Statorials","article_published_time":"2023-07-17T20:20:50+00:00","author":"Dr.benjamin anderson","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Dr.benjamin anderson","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/","url":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/","name":"NumPy: np.linspace ve np.arange aras\u0131ndaki fark \u2013 Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/tr\/#website"},"datePublished":"2023-07-17T20:20:50+00:00","dateModified":"2023-07-17T20:20:50+00:00","author":{"@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48"},"description":"Bu e\u011fitimde NumPy linspace() ve arange() i\u015flevleri aras\u0131ndaki fark \u00f6rneklerle a\u00e7\u0131klanmaktad\u0131r.","breadcrumb":{"@id":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/tr\/numpy-linspace-vs-arange\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Ev","item":"https:\/\/statorials.org\/tr\/"},{"@type":"ListItem","position":2,"name":"Numpy: np.linspace ve np.arange aras\u0131ndaki fark"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/tr\/#website","url":"https:\/\/statorials.org\/tr\/","name":"Statorials","description":"\u0130statistik okuryazarl\u0131\u011f\u0131 rehberiniz!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/tr\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"tr"},{"@type":"Person","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/365dc158a39a7c8ae256355451e3de48","name":"Dr.benjamin anderson","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/statorials.org\/tr\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/tr\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"Dr.benjamin anderson"},"description":"Merhaba, ben Benjamin, emekli bir istatistik profes\u00f6r\u00fc ve Statorials \u00f6\u011fretmenine d\u00f6n\u00fc\u015ft\u00fcm. \u0130statistik alan\u0131ndaki kapsaml\u0131 deneyimim ve uzmanl\u0131\u011f\u0131mla, \u00f6\u011frencilerimi Statorials arac\u0131l\u0131\u011f\u0131yla g\u00fc\u00e7lendirmek i\u00e7in bilgilerimi payla\u015fmaya can at\u0131yorum. Daha fazlas\u0131n\u0131 bil","sameAs":["https:\/\/statorials.org\/tr"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/comments?post=3372"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/posts\/3372\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/media?parent=3372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/categories?post=3372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/tr\/wp-json\/wp\/v2\/tags?post=3372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}