What you hate is not really the math, but rather the broken education system that presented it to you
reblog if you think math doesn't deserve all that hate
Most programs people use have some form of user input. A calculator isn't much use if it always uses the same numbers after all!
~ATH of course accepts user input and output as shown in the file Roxy sent Jane.
Also I just found out you can put more than one read more line in one post.
The input command has the syntax:
INPUT VARNAME;
What this does is when program execution meets this line, the program pauses execution, allowing the user to input text. When the user hits enter, program execution will continue and the variable VARNAME will be made to point to an object corresponding to the text the user entered.
This object is such that the left half is the object that corresponds to the first character. If there is no character after that, the right half will be the NULL object. Otherwise the right half will be the object corresponding to the input without the first character. If they hit enter without inputting any characters the object will just be the NULL object.
Now that we have that all explained, we can start to make programs that actually take user input!
As you might have guessed from the title, the thing we will be making is a very basic calculator. All it does is add two numbers, like in the last example.
But in this, it will get the numbers from the user!
One simple way to do this is to use the length of the input text as the number: The way we define what we call numbers just so happens (heh) to be such that if we interpret the object for the input string as a number, the number will be the same as the length of the input!
This isn't the greatest solution, but it is easier than other methods. We will use this method first and then move on to other methods that are harder to write, but will be nicer when using the end program.
HERE WE GO:
ok, so like I said, much of it is pretty much the same as that previous program, so we might as well just include said here:
SOME CODE TO GET A AND B HERE import bluh BLAH; BIFURCATE [BLAH,A]ATEMP; BIFURCATE [BLAH,B]BTEMP; BIFURCATE ATEMP[JUNK,ATEMP]; BIFURCATE BTEMP[JUNK,BTEMP]; BIFURCATE [BLAH,NULL]C; BIFURCATE C[JUNK,C]; ~ATH(ATEMP){ BIFURCATE ATEMP[JUNK,ATEMP]; BIFURCATE [BLAH,C]C; } ~ATH(BTEMP){ BIFURCATE BTEMP[JUNK,BTEMP]; BIFURCATE [BLAH,C]C; } BIFURCATE [BLAH,C]CTEMP; BIFURCATE CTEMP[JUNK,CTEMP]; ~ATH(CTEMP){ BIFURCATE CTEMP[JUNK,CTEMP]; print some text; } print DONE!;
so pretty much what we need to do it put the code to get A and B where that goes(at the beginning), as well as stuff to tell the user how to print stuff.
Like I said, the objects from the input commands can be interpreted as numbers.
so this becomes:
print INPUT SOMETHING WITH THE NUMBER OF CHARACTERS AS THE FIRST NUMBER YOU WANT TO ADD; INPUT A; print INPUT SOMETHING WITH THE NUMBER OF CHARACTERS AS THE SECOND NUMBER YOU WANT TO ADD; IMPORT B; import bluh BLAH; BIFURCATE [BLAH,A]ATEMP; BIFURCATE [BLAH,B]BTEMP; BIFURCATE ATEMP[JUNK,ATEMP]; BIFURCATE BTEMP[JUNK,BTEMP]; BIFURCATE [BLAH,NULL]C; BIFURCATE C[JUNK,C]; ~ATH(ATEMP){ BIFURCATE ATEMP[JUNK,ATEMP]; BIFURCATE [BLAH,C]C; } ~ATH(BTEMP){ BIFURCATE BTEMP[JUNK,BTEMP]; BIFURCATE [BLAH,C]C; } BIFURCATE [BLAH,C]CTEMP; BIFURCATE CTEMP[JUNK,CTEMP]; ~ATH(CTEMP){ BIFURCATE CTEMP[JUNK,CTEMP]; print some text; } print DONE!;
So yeah. That should work. I still need to test this, but I am pretty dang sure that this works.(have to go do homework now) In the next post I will explain how to make it so that the user can type in the number as an actual number!
Oh no, not another
Praxis test to suffer through
Sorry about this.
As an aromantic person I find the term ‘my other half’ to refer to a significant other so strange.
Because sometimes I think to myself; ‘That’s stupid, I don’t need another half I’m a whole person by myself. Amatonormativity is so weird.’
And others I think; ‘I will forever be alone, a fraction for all my life. Without a lover I won’t be a real person.’
I hate math so fucking much bro how is my teacher gonna be shit and not know how to teach and then give us a test second week of school IN THE BEGINNING FIRST BLOCK IN THE MORNING AT 7:55 I’m done I’m gone I’m gonna die if I don’t get pre calc or foundations I’ll cry man I can’t do workplace if I wanna be a lawyer
Happy Pi Day!
🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍 🥧𝞹🤍
when you spent 4 hours solving a math problem only to realise you read the question wrong
Can I get someone to do my algebra work? Please I’m dying.
alright my fucking bad for not studying… that 60% is GLARING at me. my teacher gave me PITY POINTS. yall be so fucking for real right now 💔💔💔 why didn’t i write any of the formulas… (i know why.)
do we think i can get away without studying and still get a good grade? i have a 91 in the class currently and im learning about circles. also we end school in exactly one month. i don’t really like circles sorry guys. they’re cool, but also what. why is arc measure different from arc length and also how do i even find measure of arc QR?
how about i don’t find the measure and everyone’s happy and i still ace the class.
i’m doing math homework and it’s on circles someone take me out. “this is probably the easiest chapter” NO IT ISNT!!! SYABU‼️‼️‼️ I LIKED CHAPTER 9 TAKE ME BACK TO PYTHAGOREAN THEOREM AND SIN COS AND TAN I MISSSSSS PLEASEE :((((
The first Patreon beta of 2025 includes a math test 😶
At least calculators are allowed! It's also optional, haha.
math exam was so good it made me think, don't get men get maths fr
((not gonna say it, not gonna say it))
(no, I'm gonna say)
{Çınar}
33/100 days of productivity: Learning physics for my exam tomorrow. It's my last one (I hope ! 5/2 is not for me)
32/100 days of productivity: My schedule changed a lot this week and this is even worse next week. I feel completely out of my routine. There is so much things to know in this course that I decided to use a 4A paper than my usual A5 Bristol paper.
I use paperclip to keep my notes together (because it is to heavy to take every binder with me) and they are really helpful, even if l always loose them in my bag. Hope those pictures can inspire you. So don't throw your empty tea's box. You can always store something in them ;)
28/100 days of productivity: I didn't have a lot of homework today. I studied maths outside with the news pens I bought yesterday.
15/100 days of productivity: Learning learning learning While finishing my DM I made a chai tea latte : my favorite brevage by far right now.
14/100 days of productivity: Worked all day long. I did 2 DM ( long and more difficult exercice than usual ) today. My boyfriend helped me for the second and we are quite a nice team together.
Lot of work today. I spend hours on my khôle notes looking for more informations in physics books. I even continued while cooking and finished after eating but I made a pause to come back at school in the afternoon.Though, it took me so long ! I also made my engineering sciences notes during the morning classes because why not. I saved time that way. And now, 11pm, I will only begin my physics homework. I become to be late in my work. I spent too much time helping others doing their own homeworks that I forgot mine. So, I will probably work late tonight.
Maths study for tomorrow exam : it will only last 2hours when it’s usually 4hours. And I borrow books at school for my group project about automatisation. Oh and I guess I’m doing the 100 days of productivity even if I’m actually trying to be productive since a long time ago. But let it be the day 5 since when I started my studyblr.
⋆𐙚₊˚⊹♡ life update:
semester 03 edition — midterms and repeat papers are stressing me out
⋆𐙚₊˚⊹♡ tuesday, 12th march '24
work done, w=fd
me, n=othing done
😮💨😮💨😮💨
⋆𐙚₊˚⊹♡ monday, 11th march '24
monday blues is real, therefore i am a victim.
ramadan kareem to my fellow muslims !! may all our prayers be answered (and free palestine!)
⋆𐙚₊˚⊹♡ tuesday, 27th february '24
i started limits intro 👺👺👺 (finally) , birthday slump was reaaaaaaal </3 also i played around with the iso on "pro" mode and got these beautiful pics omg (this was alr coloured with filters, and i'm not gonna shut up till i upload these pics everywhere 😁)
Y’ever read something and have understanding that has eluded you interminably suddenly stop, curl up, and snuggle neatly into a fold in your brain because a new way way opened to it?
LISTEN UP MOTHER FUCKERS
SEE THIS WEBSITE?
ITS CALLED WOLFRAM ALPHA
THIS IS THE BEST GODDAMN WEBSITE FOR ACADEMIC SHIT. FUCK GOOGLE.
THIS MOTHERFUCKER WILL LET YOU SEARCH “HOSPITAL BEDS IN CHAD VS. IRAN”
AND IT GIVES YOU A STRAIGHT GODDAMN ANSWER
MAYBE YOU’RE NOT INTERESTED IN DOCTORNESS OF THIRD WORLD COUNTRIES COOL SHIT
HAVING TROUBLE WITH MATH?
HOLY SHIT
OR MAYBE YOU WANNA DICK AROUND
WHATEVER THE FUCK YOU WANT