How do you #python multi-dimentional partial differential equations!?
Do I perform each term individually and marry them later on, or treat them as a single entity even if the answers are radically different?
My brain, she hurts.
#python #pde #dontcallmeneo #babylearnspython
I kicked the ass of the snake! I had to work out how to import libraries, understand what libraries are, where to find them, and why they are needed when I'm trying to learn it for myself...but I did it.
TransPi is complete. Not pretty but not bad.
#babylearnspython #python #programming #callmeneo
Okay, I got some basics down. Now I need my own project.
-Teach #python what a sq is and define the size as 4π²
-Put a circle in said sq. Size πr².
-Randomly place dots all over the place.
-Start small, 10, 100, work up to larger values when speed/efficiency is producing desired results.
-The ratio is what's required to find π. A(circle)/A(sq) = π/4.
Ergo: π ~ 4 x ( # dots in circle/#dots in square)
Using x²+y² < 1 will yield desired results.
Am I mathing correctly?
Replace, strip, split, negative counting...
This stuff is all very interesting but can I please get some irl examples so I can see it in use? Baby needs to remember the why to get the how.
Converting variable types is...odd.
Converting 2.8 from a float to an int yields 2, and not the expected 3. Rounding is odd.
Taking a break. This is fun by I'm getting too into it.
So, variables inside a function are local, but you can define global properties inside the function by telling #python that's what you would like, please.
She's so polite!
x = "based af"
def myfunc():
x = "rhotic"
print("Book is " + x)
myfunc()
print("Book is " + x)
On to unpacking in #python . #babylearnspython #yeahbitch
#python #babylearnspython #yeahbitch