Skip to content
Sign upLog in
← Back to Community

Logarithms and Inverse Logarithms!

Profile icon
LizFoster

Okay, time for something fun that , for once, ISN'T related to π! (Lol)

This program takes a user-inputted base and offset, and graphs the corresponding log and inverse log. This assumes the format:

log_base(x + o)

Please enjoy! #^__ ^#

Voters
Profile icon
BryantBrackett
Profile icon
PYer
Profile icon
yourboystiles
Profile icon
luffy223
Profile icon
XanderEhlert
Profile icon
mkhoi
Profile icon
AmazingMech2418
Profile icon
noodles37
Profile icon
CodingCactus
Profile icon
Roar123
Comments
hotnewtop
Profile icon
staticvoidliam7

It's πthon lol

Profile icon
staticvoidliam7

#πthon

@LiamDonohue

Profile icon
Highwayman

@LiamDonohue

** #πthon **

Profile icon
Codemonkey51
Profile icon
staticvoidliam7

πthon gang rise up

@Codemonkey51

Profile icon
Codemonkey51

I LIKE πTHON (NOT I LIKE IKE)

@LiamDonohue

Profile icon
DynamicSquid

PIETHON

Profile icon
staticvoidliam7
Profile icon
DynamicSquid
Profile icon
staticvoidliam7

lol i was trying to make a dab

@DynamicSquid

Profile icon
DynamicSquid

@LiamDonohue
oh, I though that was a "bruh" face lol

Profile icon
staticvoidliam7
Profile icon
staticvoidliam7

YYYYYYAAAYYY ur #1 on the leaderboard

Profile icon
Highwayman

@.lizzyFoster👏 :D

Profile icon
LizFoster

@Highwayman
Ha ha ha, do you like it? I'm starting work on a new big project, hopefully this one doesn't take like a year to complete wwwwwwwww

Profile icon
Highwayman

@LizFoster
yeah! I like all your stuff, most ppl do lol. What’s the big proj?

Profile icon
LizFoster

@Highwayman
Recreating Pokemon Red completely, without any graphical modules, from scratch!

Profile icon
LizFoster

@Highwayman
I can tell this'll be fun! w-w

Profile icon
Highwayman

@LizFoster
ngl, I’ve never actually heard of Pokémon Red (I kinda lived under a rock until like last year XD) what is it?

Profile icon
LizFoster

@Highwayman
Oh, wow! I thought Pokemon was a big thing in the U.S...

It was the very first Pokemon game, released in 1996 ^ ^

Profile icon
Highwayman

@LizFoster
I mean it is but I literally have been living under a rock. Like no outside connections. Like a caveman.

...

Anyways. Cool! I think I’ve seen ppl play Pokémon before, and I’m excited to see what you will create :)

Profile icon
LizFoster

@Highwayman
Really! wwwwwwwwww

Yeah, I'm looking forward to getting into the thick of this one. I'm mostly looking forward to coding the overworld motion, and drawing up the maps 0~0

Profile icon
Highwayman

@LizFoster
UwU overworld motion? What’s that?

Profile icon
LizFoster

@Highwayman
(Lol)

Oh, I mean, working on allowing the player to move around, and having the map move with the player

Profile icon
Highwayman

@LizFoster
oh lol. Is this like 2d I’m guessing then?

Profile icon
LizFoster

@Highwayman
Yes, it is! (Lol)

Profile icon
Highwayman

@LizFoster
XD how apre you gonna get the graphics to work without any libs? I can’t even image to be honest How does that work?

Profile icon
LizFoster

@Highwayman
Well, I'll make a section for all the textures I'll need to render for an area, assigning each of them a number. Then, I make a matrix using those numbers that, when printed properly, looks like the map.

Profile icon
LizFoster

@Highwayman
Think of it like a paint-by-numbers game.

Profile icon
CodingCactus

@LizFoster
wow, that's a very big project. Pokemon's cool, although I've never played red, just like black2 onwards.

I feel like that will take quite a long time.

Good luck! :)

Profile icon
LizFoster

@CodingCactus
It probably will, yeah. I'm most worried about the map; how am I supposed to draw those textures on a reasonable scale?!

Profile icon
CodingCactus

@LizFoster
I have no idea, but I bet you'll find a way

Profile icon
LizFoster

@CodingCactus
If only Python with Turtle allowed for multiple files and folders... T~T

Profile icon
CodingCactus

@LizFoster
yea, why doesn't it? Maybe you could suggest it in feedback

Profile icon
LizFoster

@CodingCactus
Actually, yeah, I should do that! The process of getting keybinds set up is way easier with turtle anyways.. (Lol)

Profile icon
LizFoster
Profile icon
CodingCactus

@LiamDonohue
Why weren't you happy with me being number 1 on the leaderboard? :(

Profile icon
CodingCactus

@LizFoster
yeah, I was about to mention that :(

Profile icon
LizFoster

@CodingCactus
So it has something to do with hardware restraints, if I am following correctly?

Profile icon
CodingCactus

@LizFoster
yeah, I think that maybe python with turtle as a language doesn't allow multiple files, so there isn't much that repl.it can do as an IDE to alter it to allow multiple files

maybe

Profile icon
CodingCactus

@LizFoster
cool, i'm top of trending in feedback section
:)

Profile icon
LizFoster

@CodingCactus
Good job! Which post?

Profile icon
CodingCactus
Profile icon
LizFoster

@CodingCactus
Ooh, I like that idea. It would be quite cool to see how much traffic a post is getting!

Profile icon
CodingCactus
Profile icon
Highwayman

@LizFoster
sry bout the gap in time I had to go to bed apparently.

So it’s like

1 ——> textureA 2 ——> textureB 3 ——> textureC 4 ——> textureD

And the output is like

1 2 3 4

?? :/ my brain is slower than I’d like to admit :(
Or is it like

A B C D

I think I’ve just confused myself even more on what your actually telling me XD hum time to look up paint-by-numbers.

I wonder if os.system() works on python with turtle repls... actually if you’re really gunning for it, then why not set up a remote dB to hold all that stuff you’d put in files like the textures and whatever?

Profile icon
LizFoster

@Highwayman
You're right, it's like

1 2
3 4

I don't know too much about the os module, unfortunately..

Profile icon
Highwayman

@LizFoster
yay! I’m not dumb for once XD
yeah, I thought about it and decided it wouldn’t help anyways, not to worry. 🤷‍♂️

Profile icon
LizFoster

@Highwayman
wwwwwww

I'm excited to do this project ether way, though.

Profile icon
Highwayman

@LizFoster
:P ye I’m very excited to see how that’ll turn out. I’ve tried making games before, but I just totally suck at it XD you look like you’ll get somewhere though and I think it’d be fool to play your game when you post or share.

Profile icon
LizFoster

@Highwayman
Yeah! Thank you!

Profile icon
LizFoster

@Highwayman
Also, I'm sure you don't suck that badly.

Profile icon
Highwayman

@LizFoster
no no no I mean like it’s horrifying XD XD anyways.. uh.. something XD

Profile icon
LizFoster

@Highwayman
wwwwwwww

Profile icon
AmazingMech2418

@LizFoster
Though, do you think Turtle is fast enough to create a game? I haven't really messed with it much, but based on what I know, it is kind of slow... I think something like PyGame would be easier if you are doing it in Python. However, my go-to for that kind of stuff is HTML5. However, I'm not sure if Turtle allows image manipulation. I just know that drawing with Turtle would probably be too slow. I'm actually looking it up right now, because if Turtle can be used for image manipulation, I may just have to create a Python graphics library. However, I know that you could probably create a C library if needed (given that you know C (I only know command line C)). Anyways, good luck!

Profile icon
LizFoster

@AmazingMech2418
I do not know C, sadly.

There are many ways to improve turtle's efficiency; win.tracer, t.speed(0), and most obviously, using multiple turtles to draw at once. I just don't know how to use PyGame, as I haven't taken the time to learn it..

Thank you!

Profile icon
AmazingMech2418

@LizFoster
You're welcome! I honestly don't know enough C to create a graphics library either and haven't taken the time to learn PyGame. Also, you can use multiple turtles? As you can tell, I am pretty far behind in my Python knowledge, especially if you compare it to what I know about JavaScript which is my go-to language and which I have been programming in for years now (I only started Python maybe a year or two ago). JS was actually one of my first programming languages (my first was VB6, and my second was C# for ASP.NET, then I learned JS)

Profile icon
LizFoster

@AmazingMech2418
I don't blame you for not knowing much about turtle; it's apparently quite outdated (I am surprised and glad that repl.it supports it!), I only know it because we had a brief lesson on it in class one day, and it was very cool to me ^ ^*

Profile icon
AmazingMech2418

@LizFoster
Turtle is outdated? Honestly, I'm just behind in Python. I only really know how to do command line stuff. I've only really heard of things like PyGame honestly.

Profile icon
LizFoster
Profile icon
AmazingMech2418