[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.15026890 [View]
File: 87 KB, 1600x900, trollge.jpg [View same] [iqdb] [saucenao] [google]
15026890

Retard here. Need some help with the mathematical side of a programming project.
I have limited space on a graph (say, 300 pixels, but the unit is arbitrary). I need to draw a gantt chart (meaning I fill the space on a chart within a certain range between two numbers, then blank space until the start of the next set of numbers, then again for the next set of numbers, and so on). However, my data set goes far beyond 300.
Examples:
Start at 500 units, end at 1000 units.
(blank space)
Start at 1200 units, end at 3520 units.
And so on.

How do I equally scale down all the numbers I might have so that the last number in the [pair/range/whatever], which will by definition be the highest value in all the numbers; equal to 300, while still preserving each range's... aspect ratio? Thanks.

Also, bonus round: What's the nomenclature for all of this? I feel like it has something to do with "sets" and "tuples" and "limits" or something, but I'm just a code monkey.
And no, this isn't homework.

>> No.14855293 [View]
File: 87 KB, 1600x900, cover10.jpg [View same] [iqdb] [saucenao] [google]
14855293

>>14855276
>no trolling allowed
It's over musk bros...

>> No.14513065 [View]
File: 87 KB, 1600x900, cover10.jpg [View same] [iqdb] [saucenao] [google]
14513065

who is this shizo and why does he keep spamming the board?
https://vimmsaawcw.blogspot.com/

>> No.14488911 [View]
File: 87 KB, 1600x900, cover10.jpg [View same] [iqdb] [saucenao] [google]
14488911

I FUCKING HATE ADHD FUCK ADHD FUCK IT

I HAVE BEEN TESTED TO HAVE 141IQ BUT I FUCKING SUCK AT MATHS AND CHEMISTRY.
WHY THE FUCK IS IT LIKE THIS.
I WILL MAKE A BOMB AND MYSELF UP IF I FAIL ANOTHER MATH TEST. ALSO I HAVE LITERAL GLOWNIGGERS LISTENING IN ON ME - FUCKING WHY??

Navigation
View posts[+24][+48][+96]