[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 / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
What is the fastest way to calculate the harmonic sum of a number
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /sci/ - Science & Math

Thread replies: 26
Thread images: 4
File: 1462153352988.webm (3 MB, 938x1060) Image search: [Google]
1462153352988.webm
3 MB, 938x1060
What is the fastest way to calculate the harmonic sum of a number /sci/?

[math]
\sum_{k=1}^{10000000000} (\frac{1}{k})
[/math]

in python or c++

WolframAlpha does it so fast yet my c++ program takes ages
>>
>>8056273
Hnnng
>>
>>8056273
This whole "lol I lift =P" meme needs to fucking die. Attractive bodies are literally all genetics. You either store muscle and fat in aesthetic places or don't and going to the gym is not going to change that. Go to any cbt on /fit/ and you will see dudes who have unattractive muscle insertions and lifting just made them look fucking stupid.

Take this very girl for example. Her ass and legs aren't shaped any better than average even though 99.9% of women her age cannot squat 135 lbs with that quality form.

But I guess normies require their illusion of control and for her it's more about having her shitty "this ass was made IN THE GYM!!" attitude so she feels like she actually earned something when literally any guy currently giving her attention would also give her attention if she never squatted more than a 5 lb dumbbell like a retard.
>>
>>8056273
~9*ln(10) + gamma_euler = 21.3005

use Hn = ln(n) + gamma + sth negligible
>>
>>8056273
Wolframalpha probably performs some algebraic tricks to turn it into something trivial to compute.

This thread reminds me of a time an anon was making ridiculous claims about how fast compiled Lisp was. Said anon implemented a loop that computed something similar to what you are doing. After people looked at the compiled file they realized that what had been happening was that since OP never actually did anything with the result of the computation then the compiler optimized the entire thing away.

So yea, you could try that. Just don't do anything with the computation and hope the compiler optimizes it away. Then it will compile and run very fast.
>>
>>8056306
>obese person detected
>>
>>8056306
>Attractive bodies are literally all genetics
i know this is bait but i could not be more triggered.
>>
>>8056273
((10.000.000.000)*(10.000.000.001))/(2*(10.000.000.000!))
>>
File: hot_guys.jpg (923 KB, 3191x1760) Image search: [Google]
hot_guys.jpg
923 KB, 3191x1760
>>8056306
While there is a core of truth in your statement, what you say is wrong.

The fact of the matter is:
- Basically everyone significantly affects his/her attractiveness when losing excess weight and more if they build muscle
- Yes, the guys in pic related never had a chance to look like the next pic, simply because he has incredible genetics

This doesn't mean people shouldn't lift or appreciate it and it doesn't mean it's not a way to improve - it just means it has limits when compared to others.

PS: I'm 30 and look 5 times as good as with 23, because of losing weight and lifting.
>>
>>8056652
idiot
>>
File: reason_able.jpg (84 KB, 900x900) Image search: [Google]
reason_able.jpg
84 KB, 900x900
>>8056273
Being able to compute the logarithm fast will help with approximation results. Related is
https://en.wikipedia.org/wiki/Euler%E2%80%93Mascheroni_constant
>>
>>8056321
This.
>>
>>8056306
I know this is bait n all but it blows my mind that a shit ton of people legitimately believe this.
>>
>>8056336
Then you're fucking retarded. I'm not talking about HAES bullshit or anything like that; I'm talking about reality and the reality is that how attractive bodies are has a fuckton to do with your skeleton and how you store muscles. Are you really telling me that the poor saps in this photo >>8056689 just did 3x12 when they shouldve done 4x10? No, they were born to look fucking retarded and lifting wasnt going to change that. Same is true for dudes with broad shoulders and faggot skinny waists who have never seen the inside of a gym but will always look moderately good.

>>8056689
We probably believe almost the same thing. That is, I think that exercising/lifting is definitely going to help almost everyone look better, but the fact of the matter is that people's genetics put them in a box. I see a lot of guys walking around with wide hips and narrow shoulders, no matter how many hours they spend in the gym they will never look better than some Cali douche lifeguard bro who is twiglike/ottermode but has a better skeletal frame.

You're born with your proportions already decided for you. Lifting and filling out weak spots is 1/10th as effective as being born gifted.
>>
>>8057291
Thanks for the quality response. Sorting things you read into bait/not-bait categories without even thinkign about them is really doing wonderful things for your brain.

Feel free to post your body and tell me how you hand carved it to make sure your pecs are aesthetic rectanguls and not retarded looking triangles.
>>
>>8056306
FACE
FRAME
HEIGHT
>>
>>8056273
WEW
>>
>>8056306

You are fat.
>>
>>8056273
what optimization level are you using? Does -o3 help any?
>>
>>8057291
hes clearly bitter but he speaks the truth. Not everyome looks amazing ripped. Better, but not always amazing. With women now he is extra right, I see many women with that ass who never spent a day in the gym, lifting is laargely a waste of time for women.
>>
>>8056307
>sth negligible
what do you mean by sth negligible
>>
>>8056273
>barbell brigade
nice
>>
>>8056273
I'd like to 'spot' her
>>
File: IYA2t.jpg (61 KB, 605x515) Image search: [Google]
IYA2t.jpg
61 KB, 605x515
>>8056306
I get what you're saying, but I think you underestimate the amount that you can change your appearance through healthy living and exercise.

The girl in the OP has fucking incredible legs and ass, and she's quite obviously warming up
>>
>>8057774
o(1)
>>
>>8056652
That only works for arithmetic series.
Thread replies: 26
Thread images: 4

banner
banner
[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 / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.