ScratchData LogoScratchData
Back to RedSGXD's profile

Complex Numbers Mathematical Function Library

RERedSGXD•Created September 17, 2021
Complex Numbers Mathematical Function Library
0
0
24 views
View on Scratch

Instructions

Click green flag and read. Backpack sprite if you want The custom blocks are mathematical functions where you can type up to two complex numbers (like 2+i and 3+4i) as inputs. Happy Early Pi Day (dang i should've waited) well e^iπ+1 = 0 amiright

Description

Gonna add the Riemann Zeta function to this Please let me know if there are bugs! Yes, I have made complex numbers in Scratch! I don't really know a use for them, but it's cool right? Along with working with complex numbers, this contains some functions that scratch doesn't have, such as the hyperbolic trig funtions, and the factorial. For them nerds (or maybe non-nerds) that don't know what imaginary and complex numbers are: An imaginary number (the worst name for a kind of number ever) is basically just a real number (also a really bad name for a kind of number), such as 2 multiplied by i, the square root of -1. The reason we need "i" instead of any real number is because in the real numbers, there is no possible way to get square roots of negative numbers. 3 x 3, or 3² is equal to 9, but (-3) x (-3), or (-3)² is also equal to 9, and these are the only two solutions for x² = 9. In the real numbers, there is no solutions for the equation x² = -9, but with imaginary numbers, there are two, being 3i and -3i, because 3, or -3 squared equals 9, and i squared equals -1, using a law of exponents, ({ab}ᶜ = aᶜ * bᶜ) we have (3i)² = 3² * i², and by definition, i² = -1, so (3i)² = 9 * -1, which is -9, so the square root of -9 is 3i. Unlike what the name suggests, complex numbers aren't really complex. It's really just a real number + an imaginary number. For example, 3 is a real number and 4i is an imaginary number, so 3+4i is a complex number. All complex numbers can be written in the form of a+bi, where a, the real part, is always written first. If the imaginary part is negative, we write it as a-bi, like in 5-7i, where the imaginary part is -7, not 7. All real and imaginary numbers are complex numbers because all real numbers can be written as a+0i, and imaginary numbers as 0+bi, or 0-bi.

Project Details

Project ID571788289
CreatedSeptember 17, 2021
Last ModifiedDecember 6, 2023
SharedMarch 2, 2023
Visibilityvisible
CommentsAllowed