کار با مقادیر از دست رفته در پایتون، ماژول Numpy - بخش سوم
احتمالا Numpy رایجترین کتابخانه پایتون است که در همه کارکردهای پایتون از آن استفاده می شود. البته در Numpy مقادر None با nan متفاوت هستند. nan نشان دهنده not a number است، یعنی یک مقدار غیر عددی. برای مثال در حالت هایی که پاسخ به طور کلی تعریف نشده باشد با nan مواجه می شویم. برای مثال اگر جذر یک عدد منفی را بخواهید محاسبه کنید یا از یک عدد منفی لگاریتم بگیرید نتیجه یک مقدار nan خواهد بود. البته در محاسبات اگر یک مقدار nan را مثلا با عددی جمع یا از عددی کسر کنید پیام خطا دریافت نمی کنید اما نتیجه همیشه nan خواهد بود. در صورتی که وجود مقادیر None در محاسبات باعث ایجاد خطای Run time می شود.
کار با مقادیر از دست رفته در پایتون، ماژول Numpy - بخش سوم
احتمالا Numpy رایجترین کتابخانه پایتون است که در همه کارکردهای پایتون از آن استفاده می شود. البته در Numpy مقادر None با nan متفاوت هستند. nan نشان دهنده not a number است، یعنی یک مقدار غیر عددی. برای مثال در حالت هایی که پاسخ به طور کلی تعریف نشده باشد با nan مواجه می شویم. برای مثال اگر جذر یک عدد منفی را بخواهید محاسبه کنید یا از یک عدد منفی لگاریتم بگیرید نتیجه یک مقدار nan خواهد بود. البته در محاسبات اگر یک مقدار nan را مثلا با عددی جمع یا از عددی کسر کنید پیام خطا دریافت نمی کنید اما نتیجه همیشه nan خواهد بود. در صورتی که وجود مقادیر None در محاسبات باعث ایجاد خطای Run time می شود.
Bitcoin mining is the process of adding new transactions to the Bitcoin blockchain. It’s a tough job. People who choose to mine Bitcoin use a process called proof of work, deploying computers in a race to solve mathematical puzzles that verify transactions.To entice miners to keep racing to solve the puzzles and support the overall system, the Bitcoin code rewards miners with new Bitcoins. “This is how new coins are created” and new transactions are added to the blockchain, says Okoro.
What Is Bitcoin?
Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.