Колония имени Горького | کولونی گورکی
در عوض ما اعداد شبه تصادفی داریم. حالا چه اتفاقی میفته که ما وقتی از کامپیوتر اعداد تصادفی میخوایم یه عددی رو تحویل میده و چرا این عدد کاملا تصادفی نیست؟
برای تولید عدد تصادفی، کامپیوتر ها از الگوریتم تولید اعداد شبه تصادفی(PRNG) استفاده میکنن. یعنی برای این که بتونن یه عددی رو تولید بکنن، نیاز به یه فرمول و یه عدد اولیه دارن. این عدد یا حالت اولیه رو بهش میگیم seed. حالا seed چطوری تعیین میشه؟ اینجاست که بحث زمان میاد وسط
Колония имени Горького | کولونی گورکی
برای تولید عدد تصادفی، کامپیوتر ها از الگوریتم تولید اعداد شبه تصادفی(PRNG) استفاده میکنن. یعنی برای این که بتونن یه عددی رو تولید بکنن، نیاز به یه فرمول و یه عدد اولیه دارن. این عدد یا حالت اولیه رو بهش میگیم seed. حالا seed چطوری تعیین میشه؟ اینجاست که…
کامپیوتر ها سیستم زمانیشون بر حسب تعداد ثانیه های گذشته از یک نقطهٔ زمانی به نام epoch که برابر با یکم ژانویه سال ۱۹۷۰ هست حساب میشه. برای اینکه بتونیم در ایجاد اعداد شبه رندوم، عددی رو داشته باشیم که بتونه باعث ایجاد اعداد غیر تکراری بشه از زمان استفاده میکنیم که همون تعداد ثانیه هاییه که از epoch گذشته. مثلا الان که ۱۸ ژوئن ۲۰۲۴ ساعت ۱:۴۶ هست اینجا، تعداد ثانیه هایی که از epoch گذشته برابره با
1,718,660,975 ثانیه
1,718,660,975 ثانیه
Колония имени Горького | کولونی گورکی
کامپیوتر ها سیستم زمانیشون بر حسب تعداد ثانیه های گذشته از یک نقطهٔ زمانی به نام epoch که برابر با یکم ژانویه سال ۱۹۷۰ هست حساب میشه. برای اینکه بتونیم در ایجاد اعداد شبه رندوم، عددی رو داشته باشیم که بتونه باعث ایجاد اعداد غیر تکراری بشه از زمان استفاده میکنیم…
فرمولی که بر حسبش اعداد شبه تصادفی ایجاد میشن این شکلیه:
New number = (a x current number + c) mod m
در فرمول بالا اعداد a,c,m اعداد ثابتی هستن که انتخاب شدن از پیش برای این که بیشترین بازدهی رو داشته باشه فرمول، یعنی اعداد رندوم بیشتری بتونه تولید کنه(مثلا عدد m معمولا دو به توان ۳۲ یا ۶۴ هست چون با حجم های کامپیوتری بهتر کار میکنه) و current number تعداد ثانیه هایی هست که از epoch گذشته.
فرمول بالا معنیش میشه باقی ماندهٔ تقسیم
a x current number + c
بر عدد m
که نتیجه ش میشه یه عدد بین 0 تا m - 1
New number = (a x current number + c) mod m
در فرمول بالا اعداد a,c,m اعداد ثابتی هستن که انتخاب شدن از پیش برای این که بیشترین بازدهی رو داشته باشه فرمول، یعنی اعداد رندوم بیشتری بتونه تولید کنه(مثلا عدد m معمولا دو به توان ۳۲ یا ۶۴ هست چون با حجم های کامپیوتری بهتر کار میکنه) و current number تعداد ثانیه هایی هست که از epoch گذشته.
فرمول بالا معنیش میشه باقی ماندهٔ تقسیم
a x current number + c
بر عدد m
که نتیجه ش میشه یه عدد بین 0 تا m - 1
Колония имени Горького | کولونی گورکی
فرمولی که بر حسبش اعداد شبه تصادفی ایجاد میشن این شکلیه: New number = (a x current number + c) mod m در فرمول بالا اعداد a,c,m اعداد ثابتی هستن که انتخاب شدن از پیش برای این که بیشترین بازدهی رو داشته باشه فرمول، یعنی اعداد رندوم بیشتری بتونه تولید کنه(مثلا…
و این میشه عدد شبه تصادفی ما. الان که فکر میکنم ما هم مشابه کامپیوتر ها، چیز های تصادفی ای که تولید میکنیم کاملا تصادفی نیستن، بلکه تحت تأثیر تجربه های زیستهٔ ما قرار میگیرن
احتمالا خیلی خوب توضیح ندادم ولی چه کنیم؟ عاشق ریاضی و کامپیوترم
❤8🔥1
Forwarded from دوزخ امّا سرد
آخآخ.
به این اپوزیسیون گندهگوی مفتخور باید بیشتر از همه چیزها گفت.
به این اپوزیسیون گندهگوی مفتخور باید بیشتر از همه چیزها گفت.
😴1
Forwarded from دوزخ امّا سرد
دوزخ امّا سرد
آخآخ. به این اپوزیسیون گندهگوی مفتخور باید بیشتر از همه چیزها گفت.
شما یه نگاه به شخصیتهای مردمی این مملکت بنداز.
رضا پهلوی، معصومه علینژاد، علی کریمی.
انگار از تیمارستان آوردنشون. آدم باور نمیشه ننهباباشون هم حرفهاشون رو جدی بگیرن.
رضا پهلوی، معصومه علینژاد، علی کریمی.
انگار از تیمارستان آوردنشون. آدم باور نمیشه ننهباباشون هم حرفهاشون رو جدی بگیرن.
😁1
Forwarded from دوزخ امّا سرد
واقعا اسمی به ذهنم نمیرسه
من نه چپم نه راستم، بنده برای ایران تلاش میکنم
این جمله رو از هرکس شنیدید بدونید به احتمال قوی نمیدونه راست و چپ چیه.
👏2
Forwarded from 𝖵𝖾𝗎𝗉𝗁𝗈𝗋𝗂𝖺 .
من واقعا دلم میخواد تابستون رو مثل عکسای توی پینترست زندگی کنم و بگم آره تابستون فصل موردعلاقمه، ولی ترکیب گرما و امتحانا و فشار روانی و سامرتایم سگنسی که دچارش شدم هیچ جوره نمیذارن تابستون رو طوری که دلم میخواد بگذرونم.
👍1
Forwarded from What is your desire? |زن؛ زندگی؛ آزادی| (Judi 𐂂)
In an attribution to his linguistic works. RIP "the father of modern linguistics"
Forwarded from What is your desire? |زن؛ زندگی؛ آزادی| (Judi 𐂂)
از شما چه پنهان، اطلاعات سیاسیِ دانشجوها و جامعهای که من الان باهاشون در ارتباط هستم به حدی کم و محدود به اطلاعاتی است که صرفا از اینستاگرام کسب کردهاند و به طبع اون پوچ، shallow و off topic هستند که واقعا مرا میترساند.
Forwarded from What is your desire? |زن؛ زندگی؛ آزادی| (Judi 𐂂)
چقدر تلاش انجام شده که موفق شدن جامعهی دانشجو انقدر از آگاهی فاصله بگیره؟
Forwarded from What is your desire? |زن؛ زندگی؛ آزادی| (Judi 𐂂)
به اتفاقات کوی دانشگاه، اعتراضات دانشجوهای صنعتی شریف و همهی اینها فکر میکنم و عصبانیت فروکش نمیکنه.
Forwarded from What is your desire? |زن؛ زندگی؛ آزادی| (Judi 𐂂)
آخه اصلا هویتت به عنوان دانشجو و پوینتهای مثبتی که صرف دانشجو بودن برات به ارمغان میاره (در زمینهی آگاهی سیاسی) رو ایگنور میکنم. بعنوان کسی که توی این محدودهی جغرافیایی زیست میکنه دیگه چرا انقدر از مسئله پرتی؟
Most of the names of the weekdays derive in one way or another
from pagan Germanic gods or objects of worship in German and
English, one of the few remnants in our languages of this ancient
heritage. Early Germanic tribesmen modeled the names on the
Roman days of the week, thus dies solis became sunnandag (sun's
day > Sunday/Sonntag).
1. Sunday (Sonntag): - German: Sonntag
- Origin: The name comes from the Old High German "Sunnun-tag," which directly translates to "Sun's day." This mirrors the Latin "dies solis," which means "day of the sun." It is named after the Sun, a central celestial object of worship in many ancient cultures.
2. Monday (Montag): - German: Montag
- Origin: This day is named after the Moon. The German word "Montag" comes from the Old High German "Manotag," which translates to "Moon's day." This corresponds to the Latin "dies Lunae," also meaning "day of the Moon."
3. Tuesday (Dienstag): - German: Dienstag
- Origin: Dienstag is derived from the Old High German "Ziestag," which is connected to "Tiw's day" in English. Tiw (or Týr) was a Germanic god of war and sky. This day is equivalent to the Latin "dies Martis," named after Mars, the Roman god of war.
4. Wednesday (Mittwoch): - German: Mittwoch
- Origin: Unlike other days, Mittwoch means "mid-week" in German and does not directly reference a deity. However, in other Germanic languages, it was named after the god Woden (Odin), like "Woden's day" in English (Wednesday). The Latin "dies Mercurii" refers to Mercury, the Roman messenger god.
5. Thursday (Donnerstag): - German: Donnerstag
- Origin: Donnerstag means "Thunder's day," named after the god Thor (Donar in Old High German), the god of thunder. This parallels the English "Thursday" and the Latin "dies Iovis," named after Jupiter, the Roman god of thunder and the sky.
6. Friday (Freitag): - German: Freitag
- Origin: Freitag is named after the goddess Frigg (or Freyja), associated with love and fertility. This day corresponds to the English "Friday" and the Latin "dies Veneris," named after Venus, the Roman goddess of love.
7. Saturday (Samstag): - German: Samstag
- Origin: Samstag comes from the Old High German "Sambaztag," which in turn derives from the Latin "sabbatum," meaning Sabbath. However, in northern Germany, it is also called "Sonnabend," meaning "Sun evening." In English, "Saturday" is named after Saturn, following the Latin "dies Saturni."
These names reflect the syncretism between ancient Germanic and Roman cultures, showing how the Germanic tribes adapted the Roman system of naming days to fit their own pantheon of gods and celestial bodies.
from pagan Germanic gods or objects of worship in German and
English, one of the few remnants in our languages of this ancient
heritage. Early Germanic tribesmen modeled the names on the
Roman days of the week, thus dies solis became sunnandag (sun's
day > Sunday/Sonntag).
1. Sunday (Sonntag): - German: Sonntag
- Origin: The name comes from the Old High German "Sunnun-tag," which directly translates to "Sun's day." This mirrors the Latin "dies solis," which means "day of the sun." It is named after the Sun, a central celestial object of worship in many ancient cultures.
2. Monday (Montag): - German: Montag
- Origin: This day is named after the Moon. The German word "Montag" comes from the Old High German "Manotag," which translates to "Moon's day." This corresponds to the Latin "dies Lunae," also meaning "day of the Moon."
3. Tuesday (Dienstag): - German: Dienstag
- Origin: Dienstag is derived from the Old High German "Ziestag," which is connected to "Tiw's day" in English. Tiw (or Týr) was a Germanic god of war and sky. This day is equivalent to the Latin "dies Martis," named after Mars, the Roman god of war.
4. Wednesday (Mittwoch): - German: Mittwoch
- Origin: Unlike other days, Mittwoch means "mid-week" in German and does not directly reference a deity. However, in other Germanic languages, it was named after the god Woden (Odin), like "Woden's day" in English (Wednesday). The Latin "dies Mercurii" refers to Mercury, the Roman messenger god.
5. Thursday (Donnerstag): - German: Donnerstag
- Origin: Donnerstag means "Thunder's day," named after the god Thor (Donar in Old High German), the god of thunder. This parallels the English "Thursday" and the Latin "dies Iovis," named after Jupiter, the Roman god of thunder and the sky.
6. Friday (Freitag): - German: Freitag
- Origin: Freitag is named after the goddess Frigg (or Freyja), associated with love and fertility. This day corresponds to the English "Friday" and the Latin "dies Veneris," named after Venus, the Roman goddess of love.
7. Saturday (Samstag): - German: Samstag
- Origin: Samstag comes from the Old High German "Sambaztag," which in turn derives from the Latin "sabbatum," meaning Sabbath. However, in northern Germany, it is also called "Sonnabend," meaning "Sun evening." In English, "Saturday" is named after Saturn, following the Latin "dies Saturni."
These names reflect the syncretism between ancient Germanic and Roman cultures, showing how the Germanic tribes adapted the Roman system of naming days to fit their own pantheon of gods and celestial bodies.