Plot ellipse through apex and two other points
I need to draw an ellipse through point P2, which is the apex of either the minor or major axis, and two other points P1 and P3. Am I correct in believing there can only be one such ellipse? And if so,...
View ArticleCombination Picker
Hello Lively member Passel advised me this side of the vbforums. So here I am. He already gave me some stuff to think about. I wonder if I could get some other input over here. Can you help me in about...
View ArticleExcel rounds 'up' decimal?
4318.90 - 369.64 = 3949.27? Should it not be just 3949.26 only?
View ArticleGenerating rectangles around a centre point in a spiral starting from the centre
Ehh, it's been a while since I've been on VBForums. Feels a little nostalgic :bigyello: Anyway I have a central point (40x40 pixel rectangle) and I want to generate (40x40 pixel) rectangles around it...
View ArticleProve this
This problem seems easy, but I can't solve it. Prove that if 0<x<1 then sqrt(x)>x. Example: x=1/4 sqrt(1/4)=1/2.
View ArticleGet X/Y coordinates
I'm rewriting a 2d tile based map creator program that I wrote a good while back. One of the features that I'm trying to implement is to know where your mouse is in relation to the map. Currently I...
View ArticleBook about Pattern Recognition
Hi all ! I'm lokking for a book about Pattern Recognition ("Solution Manual to Accompany Pattern Classification" by O.Duda), but it seems impossible to find (I looked also in amazon.com but there...
View Article[RESOLVED] Rise/Run to Angle
For a number of years I've been using a simple rise/run vector to represent the direction of a moving object onscreen. For example, if I wanted to represent the trajectory of an object moving from...
View Articlecalculating maximum distinct char permutations
if I have four characters: R, G, B, Y, I can calculate the maximum possible permutations as they are distinct characters and the maximum is 24, which is the factorial of 4. but if the characters are:...
View Article[RESOLVED] calculating maximum distinct char permutations
if I have four characters: R, G, B, Y, I can calculate the maximum possible permutations as they are distinct characters and the maximum is 24, which is the factorial of 4. but if the characters are:...
View Article[C#] Finding angles based on side lengths
I've been following solutions on various sites about the law of sines and law of cosines. However, I must be all mixed up or something because I can't figure out the formulas. I know the lengths of all...
View ArticleThe maximum number of divisors
In this problem all numbers are integers. In the range [1 - 100], find the number, or numbers, that have the maximum number of divisors. Example: -Divisors of 5 are: 1-5. The number of divisors is 2....
View Article[RESOLVED] [C#] Finding angles based on side lengths
I've been following solutions on various sites about the law of sines and law of cosines. However, I must be all mixed up or something because I can't figure out the formulas. I know the lengths of all...
View Articlehelp with a formula to find lengths
Hi, need some help to figure out a formula to find the following(check attached) Given: AD=3000, AB=6000 and BC=800 AL=LM=MB=2000 Find: LP, MN, DP, PN, NC and the degrees for ADP corner Thanks in...
View ArticleGet x value in relation to horizontal bar
I'm wanting to create my own ProgressBar, more specifically using XNA. In order to do this, I need to fill the ProgressBar from position 0(which represents the minimum) to the value in relation to the...
View Article[RESOLVED] Circular segment height?
So i have an assignment at school. the first part of the assignment is finding out how many litres of liquid are in a cylinder. I have the following variables: d = 50 cm (diameter of circle) L = 120 cm...
View ArticleNormalized range
I've got two numbers, A and B. I don't know which is bigger at the outset. I'm trying to work out a math function that will use the two numbers (without IF statements) and end in a result from 0 to 2,...
View ArticleLooking for a small random function
I am looking for help with a stable random function. I have a rectangle that can be various sizes. So let's say 100 x 60. I would like to select a single point on it randomly. That's all simple. One...
View Articlereliable decimal to fraction converter
I have some code for converting a decimal to a fraction: Code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim input As Decimal...
View ArticleLogarithmic question
I've got a random number between 0 and 1 (simple Rnd() function). If the number is less than 0.1, I need to know how many times you'd need to multiply 0.1 by 0.9 to get under the value I have. I also...
View Article