[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
Modulus in base n
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 /sci/ - Science & Math

Thread replies: 17
Thread images: 2
File: Pale_Blue_Dot.png (563 KB, 614x453) Image search: [iqdb] [SauceNao] [Google]
Pale_Blue_Dot.png
563 KB, 614x453
Is there a generic formula for performing a modulus operation on a number that is in base 'n'? If not, what's the best way of performing a modulus on a very large number that is not in base 10?
>>
>>7789303
yes

if its negative, times by -1
>>
>>7789303
That picture is sexy.

More.
>>
>>7789674
>>7789677
/sci/ is filled with highschoolers and 20 year old undergrads unfortunately for you, OP
>>
>>7789678
I'm 22, and not currently undergoing any degree of higher education.
>>
>>7789681
Also, I still want more.

An idea I had for recreation is a black background with a few overlapping gradients from one end to the other. Then to run it through some sort of blurring kernel, add noise, and tweak sharpness.

I would like to know where it came from, or how it was generated.
>>
>>7789683
>Pale_Blue_Dot.png
Google 'pale blue dot', and you'll be even more amazed! The picture is not generated....
>>
>>7789678
I am actually an 1st year CS undergraduate, and was interested in finding a quick generic method but I have resorted to converting the number to base 10, then using Google to take the modules of each 'unit' of the input and adding the remainders so I have something manageable.
>>
>>7789303
Convert x and y to base 10. Do x % y in base 10. Convert the result back to base n.
>>
>>7790548
Yeh, cheers
>>
Do you literally don't know how division works?
>>
>>7789303
its time to load up GMP
>>
>>7789303
Retarded CS majors don't belong here.
>>
File: CS' proud retard.png (17 KB, 1041x148) Image search: [iqdb] [SauceNao] [Google]
CS' proud retard.png
17 KB, 1041x148
>>7792089

CS majors man. Just be happy that they can dress themselves.
>>
>>7789303
No there isn't because in different bases you have different numbers of symbols and the symbols you used in one base has a different meaning in another base. all modulus operations will work regardless of base so just pick one and stick to it or convert in and out of whichever base suits you best.
>>
>>7792339
I love that Irony that that message was entered, processed, transmitted, received and decoded using complex systems and techniques invented and built by people who probably majored in CS...
>>
>>7793430
>>people who probably majored in CS
>we wuz electrical and computer engineers

top kek
Thread replies: 17
Thread images: 2
Thread DB ID: 434586



[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.