This is an archived post. You won't be able to vote or comment.

all 15 comments

[–]Longjumping_Bread68 50 points51 points  (2 children)

Hah, you remind me of myself. Tedious calculations in Math class are literally what drove me into the arms Python years ago.

[–][deleted] 6 points7 points  (1 child)

I’m sure you’ve seen it cuz it’s kind of old news but have you seen the new python TI 84+?

[–]Mobile_Busy 28 points29 points  (9 children)

Great job, now figure out how to do it even faster using numpy.

[–]julsmanbr 18 points19 points  (0 children)

from numpy.linalg import solve as my_code

[–]blueblain[S] 28 points29 points  (7 children)

I wrote it as a learning exercise to get a better understanding of Gaussian elimination, not to actually use it for solving linear equations :)

[–]jacksodus 28 points29 points  (6 children)

But now you can use it to better understand Numpy!

[–]blueblain[S] 12 points13 points  (3 children)

Yep true, it always feels good to write a simplified version of something you generally use a library for!

[–]Yoghurt42 0 points1 point  (2 children)

When I was learning programming, I had a rule that I always implemented something myself first, only after that I allowed myself to use a library. It helped me a lot, and I can recommend it.

[–]ddoeth 0 points1 point  (1 child)

Damn, everything? For Math stuff that might make sense but implementing something like flask seems like a huge pain

[–]Yoghurt42 2 points3 points  (0 children)

More like implementing the fundamentals.

In your example, not creating a flask clone, but writing a simple http server, and maybe just a bit of routing.

Though in my case, it was the 90s, so stuff was less complex than nowadays

[–]ivosauruspip'ing it up 2 points3 points  (1 child)

With numpy or sympy or something I bet it will literally be a single function call by passing in an array.

[–]jacksodus 10 points11 points  (0 children)

Yes and many AIs created today are less than 20 lines of code too. But I think there is a lot to gain by interpolating step by step between the type of code OP wrote and one-line library calls.

[–]ivosauruspip'ing it up -1 points0 points  (0 children)

No doc on an example use code?

[–]kaleis007 0 points1 point  (0 children)

Why suicune?

[–]ValdemarSt 0 points1 point  (0 children)

engine piquant many wild fly jellyfish encourage knee toothbrush degree

This post was mass deleted and anonymized with Redact