VS 2008 Fourth Degree Equation
Nov 20, 2009Is anybody good with math?
CODE:
I'm not sure if this is the right thread for this.
Is anybody good with math?
CODE:
I'm not sure if this is the right thread for this.
Let's say I wrote 1+1 in a text box1 how to get answer in a text box2?
View 10 Replieswell my mouse has four buttons- can I handle the forth (Right Left Center and Forth) to do sumthing?
View 1 RepliesI am a little rusty in my geometry skills and google has no meaningful results so let's try it here.This problem is a part of VB and with a salt of geometry . I have posted it here and not in math forum while I think that here will be a bit better response.I need to find 4th vertex of a Rectangle by given 3 vertices.
I don't know which 3 points will I become: could be by given points A,B,C or by given points C,D,A search for a fourth vertex.
[Code]...
Ive got a CheckedListBox with a list of 10 words (1 for each row). Ive then got a string of 10 numbers (0110100110). What I want to do is loop through the string, and if the number is a 1, set the corresponding checkbox to true (checked), and if it is a 0, set it to false (unchecked).For example, take the fourth number in the string, 0, this means it would set the CheckBox in the fourth row of the CheckedListBox to true.
View 4 Replies- how to convert degree to radian
-how to use a function sqrt
-how to use a funtion pow
-how to use a function sinus
I want to paint the background of a form with gradient using the LinearGradientBrush; but I have troubles using degrees.Basically, I want using linear gradient in diagonal.
View 1 Replieshow to rotate a label 45 degree's ? The label is in a group box.I'm using vb.net 2005
View 10 RepliesI am capturing images from a webcam and I have to compare the degree of similarity between two or more images. that is... which two images are the closest match.
I know I cannot compare the pixels...so how do i go about it?
I am using Visual basic 2010 on Win7
This comparison need to be sufficiently fast. Within 2-3 seconds.
I was looking into pixel by pixel comparison. but webcam pictures as I understand do have slight changes between frames(disturbances).
I am working on recognizing hand gestures...which would in turn control a small mechanical crane...
for example a thumbs-up sign would mean a signal for crane to be switched on...and a full palm shown would mean a stop your work sign.
I plan wearing a white glove against a black background.
I also have ideas like dividing the screen into a 10x10 matrix.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
Just curious ... for those whose main occupation is as a software developer what percentage of you had computer science degree vs. self taught?
View 2 Repliesi have a decimal number like 35,23456834 the rapresent a latitude or longitude (in degree but with decimal form for the decimal )
My need is to transform that number in xx° - xx' - xx'' in a variabli of string
I dont even know if you can do this in vb.net but, how do you change the pictureboxes x2 y2 to tilt some degrees other than 90 degree angles?
View 2 RepliesI want to iterate through an equation and modify a number e.g. Multiply it by 10, where there is one. How do I do this?
View 4 RepliesI wanted to read input equation by user A+B and assign input user value to A and B to ask them to add and give answer. But I just can't get the code to work. I using VS2005 and VB.Net.[code]
View 1 RepliesCan I use a function for more than one equation?
Program Description: Fortuitous Dice is a game that requires two dice be rolled, one at a time. If p and q are the numbers rolled on the first and second die, respectively the value of the roll in the game is determined as follows:
P Q Rule (value of the roll and condition)
Even Odd 2P + Q
Odd Even P + 2Q
Even Even P + Q When P not = Q
P When P = Q
odd Odd P + Q When P not = Q
3Q When P = Q
I have a decent understanding of the logic, the content. I'm working on a puzzle and I'd like to write a short program. I'm looking to fill in the following variables: AB.CDE FG.HIJ (they're part of coordinates, and the puzzle is part of a geocache)
The puzzle asks you to determine which numbers correspond to certain colors, like this:
[code...]
I need to define A-J as >= 0 and <=9. I also need to say that each color is >= 0 and <=9, but that no color can be equal to another color (purple ≠yellow, orange, etc). some number combinations won't work. Purple and yellow can't be 2 and 5 respectively, because that'd produce a negative number. I'm guessing that there will be more than one possible result. So how do I create an equation that calculates this.
I would like to read a user's input equation or expression as a string (such as "y=5*(x+6)" or "cos(3)^2") and have the program evaluate it mathematically. Does .Net have any classes that could do this? Obviously, the compiler can already take a programmer's coded equation and evaluate it. Of course this is a different matter, but is there not a way to harness that same power with runtime user-created equations? Serialization or anything?
The other option (I guess) would be to create my own equation-generator - breaking an equation down into a binary tree of the numerical values and the operations I suppose. Aside from being a nontrivial task, my program needs optimal performance as these equations are in large loops. At the very least, this would add several conditional evaluations to each equation run - dunno if that adds up.
The project is "kWh counter", that is, a simple program that calculates the power usage.The incoming numbers are the Power of the appliance (lightbulb) and the voltage (230/120).The formula is W=P*t that is multiplication of the power and the time it is used.I thought to connect it with a timer and the passing secconds multyply with the power, and, write the ussage on a label.This would be something like a simple digital power counter.Note that the voltage is not necesary.I am from europe where the standards are 230V.
View 7 RepliesI have an equation in the form of a string:
Dim Answer as Integer
Dim AnswerBox as New RichTextBox
'... Settings for AnswerBox
[code].....
My assignment is to get the Get Monthly Income (Num1)Get Monthly Home Rent/Mortgage (Num2) Get Other Monthly Payments (alimony, child support, student loans) (Num3) Display Allowable Monthly Car Payment Display Maximum Car Value (interest rate based on credit) (answer) Public Class Form1
[Code]...
What I need to do is automatically generate a specific PIN number based on the current date. The formula goes like this: MMDD + 1234 = PIN. (ex. Date = 3/26/2012 -> 0326 + 1234 = 1560; With 1560 being the PIN number. I then need the PIN number to display as text, but that's the easy part, I really just need assistance with getting the date information in the proper format for the equation.
View 2 Repliesafter a lot of research on formatting Maths equations, apparently using MS equation edior is the easiest way to do it. But, I have no idea how to use it in VS 2008.
View 2 RepliesI am rotating a picture dependant on the mousemove.
Private Sub PictureBox1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseMove
[code]...
To simplify the part I am having problems with: rotationX = CurrentPositionX + ((InitialPositionX - MousePositonX) / SlowDownDivisor)
As an example, this occurs in both X and Y; If I click and drag in the X + Direction and release the mouse button it does exactly what I want, rotation in the positive direction. If I click and drag in the X + Direction and then drag in the X - direction, the rotation continues to be positive, it doesn't reverse. If I release the button and then click again and move in the X - direction the rotation is negative as it should, but it will continue to rotate in the negitive direction until the button is release.
commercial dll to be used in vb.net to calculate equations of any complexity? pass an equation as a string form and to get the final result.
View 1 RepliesIn our school theres a programming class and the teachers gone for the week and the sub is starting to get very frustrated, so I offered to help in any way i can. I have never programmed Visual Basic but I have programmed Ms-Dos, Javascript, HTML, *.vbs, *.ahk, *.gml, and a variety of other languages.
The class is going to build a program that calculate how many rabbits are born in a family. So when they click the button it shows in a text box the actual equation and then the answer after the equal sign that where i assume concatenation comes in.Here's the code I've thrown together for when the buttons pressed:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim RabitAmount As Integer
Dim ShowEquation As String
[code]....
I got the equation to answer it self and show in the text box but it won't show the equation?
I want to display an equation prior to solving it. Obviously in MS word etc I can use equation editor to write an equation, but I'm writing my own program.
Is there an easy way to display an equation. Obviously I could use text to write eg as text "a=b^2-3(c-d)/5" and everyone here would have little problem interpretting what I want but I want this to be accessible to 12 year old children.
Alternatively I could try and manipulate lots of text boxes one on top of the other to try and explain what I'm doing
The third alternative I thought of was to write in equation editor export the graphic and then import a graphic.
I'm sure I must be trying to reinvent the wheel - which I believe is the one thing OE programming is supposed to avoid.
First off the listbox needs to show the equations for the number entered between 0 and 12 example:
1+1=2
1+2=3
1+3=4
[Code]....
I put this mathematical formula in VB 2008 Express Form and I have the result show in TextBox and every thing is good so far and my question is if I have a table of numbers for example if the answer in the TextBox is 0.00098 and my table show :
0.0001 to 0.00100 = 7
0.00101 to 0.002 = 8
0.00201 to 0.003 = 9
Etc
I need the number 7 to be displayed in label 1 so how can I do that?
I store a formula in the database such as the following:GrossIncome+(Overtime/0.5)-Deductions=BasicNetIncome
I am able to substitute the string representations with actually values entered, thus:1000+(150*0.5)-100=BasicNetIncome
Then I remove the '=BasicNetIncome', thus:
1000+(150*0.5)-100
How can evaluate the above equation to return a result:
[Code]...