Click here to Skip to main content
15,888,351 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Calculating a width and height, not square root. Pin
Luc Pattyn7-Mar-09 5:22
sitebuilderLuc Pattyn7-Mar-09 5:22 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 5:25
Cloughy7-Mar-09 5:25 
GeneralRe: Calculating a width and height, not square root. Pin
Yusuf7-Mar-09 13:23
Yusuf7-Mar-09 13:23 
AnswerRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 5:27
Cloughy7-Mar-09 5:27 
GeneralRe: Calculating a width and height, not square root. Pin
Luc Pattyn7-Mar-09 5:34
sitebuilderLuc Pattyn7-Mar-09 5:34 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 6:04
Cloughy7-Mar-09 6:04 
GeneralRe: Calculating a width and height, not square root. [modified] Pin
0x3c07-Mar-09 7:05
0x3c07-Mar-09 7:05 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy7-Mar-09 13:07
Cloughy7-Mar-09 13:07 
Thanks for the input, but no.
Once i get the width(N) and the height(0.75*N). If i multiply H x W then i would still get 40000 for my area.
What i really need is a squared root function, but more like a Rectangle root.
The most important factor, is N.

So if my area is 480000, then width(N) = 800 and the height(0.75*N)= 600.

So my window would need to be set at 800x600. BTW area is never constant. I always get the ClientArea size of the mdi control.


Cheers

Cloughy
GeneralRe: Calculating a width and height, not square root. Pin
Yusuf7-Mar-09 13:39
Yusuf7-Mar-09 13:39 
GeneralRe: Calculating a width and height, not square root. PinPopular
Luc Pattyn7-Mar-09 14:46
sitebuilderLuc Pattyn7-Mar-09 14:46 
GeneralRe: Calculating a width and height, not square root. Pin
Yusuf7-Mar-09 15:50
Yusuf7-Mar-09 15:50 
GeneralRe: Calculating a width and height, not square root. Pin
CPallini10-Mar-09 4:29
mveCPallini10-Mar-09 4:29 
GeneralRe: Calculating a width and height, not square root. Pin
Pete O'Hanlon10-Mar-09 4:34
mvePete O'Hanlon10-Mar-09 4:34 
GeneralRe: Calculating a width and height, not square root. Pin
Luc Pattyn10-Mar-09 8:19
sitebuilderLuc Pattyn10-Mar-09 8:19 
GeneralRe: Calculating a width and height, not square root. Pin
PIEBALDconsult22-Mar-09 17:52
mvePIEBALDconsult22-Mar-09 17:52 
GeneralRe: Calculating a width and height, not square root. [modified] Pin
Yusuf7-Mar-09 13:37
Yusuf7-Mar-09 13:37 
GeneralRe: Calculating a width and height, not square root. Pin
0x3c08-Mar-09 1:40
0x3c08-Mar-09 1:40 
GeneralRe: Calculating a width and height, not square root. Pin
Yusuf8-Mar-09 1:50
Yusuf8-Mar-09 1:50 
GeneralHow to calculate width and height under constraints Pin
73Zeppelin7-Mar-09 19:53
73Zeppelin7-Mar-09 19:53 
GeneralRe: Calculating a width and height, not square root. Pin
Cloughy8-Mar-09 4:37
Cloughy8-Mar-09 4:37 
GeneralRe: Calculating a width and height, not square root. Pin
73Zeppelin9-Mar-09 0:12
73Zeppelin9-Mar-09 0:12 
QuestionVery advanced Computer Graphics library Pin
markweber5-Mar-09 5:08
markweber5-Mar-09 5:08 
AnswerRe: Very advanced Computer Graphics library Pin
Mark Churchill9-Mar-09 13:57
Mark Churchill9-Mar-09 13:57 
GeneralRe: Very advanced Computer Graphics library Pin
markweber10-Mar-09 3:26
markweber10-Mar-09 3:26 
Questiona parellel program problem Pin
JackPuppy2-Mar-09 1:49
JackPuppy2-Mar-09 1:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.