[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y ] [Search | Home]
4Archive logo
How does this make you feel, /g/?
If images are not shown try to refresh the page. If you like this website, please disable any AdBlock software!

You are currently reading a thread in /g/ - Technology

Thread replies: 65
Thread images: 2
How does this make you feel, /g/?
http://www.thebestpageintheuniverse.net/c.cgi?u=math
>>
>do Fibonacci recursively
If you're an idiot and enjoy exponential time, that is.
>>
Of course the people who hate math are idiots
>>
Why doesn't this bald dunecoon put dates on his rants?
>>
>>52315924
I do fib recursively in linear time.
>>
>>52315124
reminder that bill gates didn't even program DOS but bought it when IBM was looking for an OS.
>>
>>52315124
did he actually say that or is it just a joke
>>
>>52315999
fibs 0 = 0
fibs 1 = 1
fibs n = fibs (n - 1) + fibs (n - 2)

>linear
lol
>>
>>52316111
You suck.

let fib n =
let rec loop a b = function
| 1 -> b
| n -> loop b (a + b) (pred n) in
loop 1 1 n
;;

That's recursive and linear.
>>
>>52316135
What the Hell is this language? I can't read it.
>>
>>52316159
OCaml
>>
>>52316067
>did he actually say that or is it just a joke
We'll have to put the rubric from /b/ on /g/'s masthead.
How come you don't question the veracity of remarks attributed to others (EG Steve Jobs)?
>>
>>52316185
ocamel
or
ocami
>>
>>52316185
What does the second and the last two lines do?
>>
>>52315124

Generally correct.

Mathematics refines your thinking.

Personally, I minored in mathematics, but I've forgotten the vast majority of what I learned. The most advanced thing I've used is really pretty basic algebra, and I've written some fairly interesting stuff (not just a CRUD or web dev).

I'd say anyone who isn't borderline retarded should learn at least basic calculus. Derivatives and integrals change the way that you think. Statistics would be great for people to grasp, but I guess it depends on how deep you want to get.

In my opinion, people who say "I hate math" are people who are simply bad at applying themselves and *learning*. Maybe they can learn things by literally watching others, I don't know, but that doesn't qualify you for much more than basic target acquisition and mimicry (i.e. burger flipping, choreographed dancer, etc.), which doesn't pay well and isn't very gratifying.
>>
>>52316211
OCaml

>>52316212
let rec loop a b = function
I'm defining a recursive function with three args, a, b and a third that I will analyze.

loop 1 1 n
it means, that my value is loop 1 1 n
(the three arguments are 1 1 and n).

;;
The end.
>>
>>52316135
>no one liner
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)
>>
>>52316258
Thanks, OCaml looks interesting. Pity it's not pure.

>>52316271
Based Haskell. That's how a functional language should look like.
>>
>>52316258
but how do you pronounce it, though?
>>
>>52316310
https://en.wikipedia.org/wiki/International_Phonetic_Alphabet
okɑmœl
with strictly no intonation, it's French.
>>
>>52316310

I've always read "OCaml" as "oh camel". Like, "O tannenbaum, o tannenbaum!"

This is probably incorrect, but I like my version.
>>
functional programming thread?
functional programming thread?

import Control.Monad
main = forever $ putStrLn "FUNCTIONAL PROGRAMMING THREAD?"
>>
>>52315924
If you allow for side effects, instead uber pure FP, it's really fast. Bonus, it pisses off every type of programming-idiologist out there.
>>
>>52316310
>>52316361
to be precise
o kɑ mœl

it's three syllable
>>
>>52316310
>>52316361
>>52316398
Sorry I said bullshit.
It's
o kɑ mɛl
not
o kɑ mœl
>>
>>52316398
Sounds like ``O, Samael!'' You know, like the Angel of Death. What kind of satanic chant is that?
>>
>>52316398
>>52316415
i kind of like
"Oh kah me" better
also, I heard this language is gonna be good for AI because of some language update or something, is that true?
How do I into AI anyways; I do haskell btw
>>
>>52316489
>also, I heard this language is gonna be good for AI because of some language update or something, is that true?
dunno
>>
>>52315974
He does dipshit.
>>
>>52316512
Where is it?
>>
>>52316425
It's people like you who ruined my once favorite show on tv
>>
>>52316527
on the home page next to the rant title
>>
i wholeheartedly agree, desu
>>
>>52315924
homo
>>
>>52316551
So you concede the cuck doesn't put dates on his rants?
>>
>>52315124
Recursive fibonacci is counterintuitive AND inefficient. Kinda like functional languages.
>>
>>52316135
homo
>>
>>52315124
ive been reading this web site for years
i love the old hatemail
>>
>>52316232
Math also isn't immediately interesting to a lot of people, which, in MY opinion is crucial to how effectively they will learn it.
>>
24 minutes to compute fib 10,000,000
>>
>not doing fibonacci numbers in constant time

Lua 5.3.2  Copyright (C) 1994-2015 Lua.org, PUC-Rio
> n = 7
> sq5 = math.sqrt(5)
> 1 / sq5 * (((1 + sq5) / 2) ^ n - ((1 - sq5) / 2) ^ n)
13.0
> n = 8
> 1 / sq5 * (((1 + sq5) / 2) ^ n - ((1 - sq5) / 2) ^ n)
21.0
> n = 9
> 1 / sq5 * (((1 + sq5) / 2) ^ n - ((1 - sq5) / 2) ^ n)
34.0
>>
>>52315124
as someone who failed my maths gcse until I was 24, at which point I got the highest grade achievable and was asked to study at the universities whom wouldn't give me the time of day when I cared, offering ME money to study under them, I think it's the most retarded blogpost I've read since the one I'm typing now
>>
>>52316905
I wonder where it's starting to diverge.
>>
>>52316925
>Things That Didn't Happen: The Post
>>
>>52316111
And then there's me, who does fibonacci in O(ln(n)) with a matrix.
>>
>>52316972
I'm just saying, as someone who has struggled with maths, it's a very arrogant way to look at it
it's not about instructions, it's about knowing how to carry them out
>>
>>52317120
So it's literally a monkey see monkey do type of business and you still failed. Waste of life.
>>
>>52316925
But when are you gonna pass English?
>>
>>52315124
I do realize that he's exaggerating for the comical effect, but that post is still pretty retarded.
First he says shit like "hurr people learn all that other useless shit, so you should learn math too", instead of questioning why we have to learn all that shit in the first place. I really wish I could have spent more time focusing on my interests in highschool, instead of having to learn fucking literature and shit, and I can see why someone would feel like that about math, and no, you aren't going to need it if you're the average normie.
Then he goes on to shit on people doodling around and playing on their phone in the class. It's pretty hypocritical, when coming from someone who essentially makes opinionated videos and blogposts. Yeah maddox is kinda entertaining, but I didn't get smarter from watching or reading his shit.
>>
>>52317152
>maddox is kinda entertaining
How is 20 years of the same babble even remotely interesting?
>>
>>52317152
There's some value in learning anything. Saying "I'm not going to need it" just makes you look like a mouth breather with low ambitions.
>>
>>52315124
>If you suck at math, what you really suck at is following instructions.
It's not but he has a point, this bullshit is unforgivable.
>>
>>52317189
>There's some value in learning anything.
I'm just saying that I don't want others choosing what I should learn.
>>
>>52317251
Yea, because such an important decision can be left to some arrogant halfwit who can't even into simple instructions. Just fucking kill yourself.
>>
>>52317141
not really, there's also the requirement to recognise where the problems are to be applied, such as algebra and variables (a rather juvenile example)
>>52317143
when I sobre up
>>
>>52317292
Yeah, it's the intuition that is actually important in math. Following instructions isn't math, and it's not especially useful if you want to actually make some kind of progress (it's fine for grunt work). I hope he's embarrassed to look back on that post.
>>
I don't need math.
>>
>>52316905
>calculating a mathematical constant every time it's needed
why?
>>
>>52316905
Where did you import your math function? Your ide just knows it's there so the compiler can figure it out on its own? What ide are you using? It requires the legal shit to be in your script????
>>
 (define (fib-iter n)
(do ((num 2 (+ num 1))
(fib-prev 1 fib)
(fib 1 (+ fib fib-prev)))
((>= num n) fib)))
>>
>>52317465
Sweet Markov Chain generator bro. That almost reads like an actual sentence!
>>
>>52316111
Are you retarded or not know recursive implementations vary
>>
>>52317018
prove it
also, do it in haskell
>>
File: 1444164116241.gif (100 KB, 374x400) Image search: [iqdb] [SauceNao] [Google]
1444164116241.gif
100 KB, 374x400
>>52317018
And finally there's me, who read SICP and does fibonacci in O(1) with the golden ratio.

fucking plebs, get on my level
>>
>>52315124
>The internet is just a passing fad
>640K software is all the memory anybody would ever need on a computer
Why do people still take this dork seriously?
Thread replies: 65
Thread images: 2
Thread DB ID: 383198



[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vip /vp / vr / w / wg / wsg / wsr / x / y] [Search | Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the shown content originated from that site. This means that 4Archive shows their content, archived. If you need information for a Poster - contact them.
If a post contains personal/copyrighted/illegal content, then use the post's [Report] link! If a post is not removed within 24h contact me at [email protected] with the post's information.