Is there a way to create new mathematical equations at runtime? Obviously you can pass new variables to a given equation, but I need to make a new equation altogether (then give it variables).
How to create Key access for that fast array in VB.NET [code] waiting for any sample, this sample fastest for me work, but retrieve by key not only by number.
I am trying to make a program to calculate the roots of a polynomial equation using the bisection method. I have designed the program so the user input a range of x values (x1 and x2) to solve for the root. When I debug the program I keep getting zero for the root. I know there must be something wrong the way I have my loop setup that keeps giving me a zero root. Here is what I have so far
Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim x1 As Double Dim x2 As Double
I'm working on a calculator. So far I've made it so you can type in an equation with as many numbers as you want like 5+6-12*3/4 and it can solve it. My main problem now though is that it's solving the problem left to right instead of using PEMDAS. For example 2+6*2 should = 14 but when I type it in it will give me 16. My calculator isn't using parenthesis or exponents so I just want to put the multiplication, division, addition and subtraction in order when solving.Could a more experienced coder give me some pseudocode to make this possible please? So far for the calc I've been using regex a lot. Is there a way to achieve this without regex?
I have to calculate values of several equations in an application. For example, one these equations could be:
d = a + b*z + c*z (this is what is being displayed to the user, assume that 'a', 'b' and 'c' are provided as textboxes, assume that z is a hardcoded value for now)
Now, the user could enter a=1.5, b= -0.5 and c = -0.6 (or even 'a' could be negative). So, I just tried a sample code for simple values but to no avail...
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click Dim val1, val2, val3_calculated, first, second As String first = "8" second = "3" Dim arr(10) As String [Code] .....
Error: But it throws an error saying that I am not using any databind control.
Concerns: First of all, is it necessary to use this "eval" operator in here? Is there any way to keep "-0.5" with the sign in asp.net using vb?
I am working on an assignment for Visual Basic, trying to write a program that will enable a user to enter a number and have it display that number and show in a listbox how it would multiply with numbers 1 through 12. An example of this is:
Similar to using VAL(a$) to return the numerical value of a string, is there a function for returning the solution of an equation that is user-typed into a textbox? For instance, user types F$=(a+b*x)/(c*x^2-d*x^3) where the variables of the equation are either pulled from a textbox or derived within the code. I am looking for something like F=Solve(F$).
I found a great way to get the equations of calculations from application to Microsoft word file with MimeTex here-[URL]
But unfortunelly the code is only for Microsoft Visual Studio Solution under the Eq2ImgWinForms folder, but I use on my application Visual Basic language (Visual Basic 2008 Express Edition).
how could I use the same thing on my application with Visual Basic?
Due to the way I currently have it setup, the calculations are not being excecuted properly. I've been tweaking for a while and haven't gotten it yet. I think the problem is that certain equations are being done before certain terms are defined. If I click the calculate button multiple times, it works fine, but I need it to function on the first click.
Take a look:
Public Class frmford Dim Make, Model, InitialPrice, Options, AirConditioningTax, GST, PST, Total, Subtotal, APR, Months, RoofRack, SunRoof, SideAirBags, TintedGlass, RearSpoiler, GPS, PowerLocks, FreightAndPDI, AirConditioning As Single
I've made a fairly good Windows form application to solve quadratic equations, but I am having a hard time understanding the publication process microsoft uses in Visual Studio. I'd like to distribute my programm as freeware on my blog.
i got bored earlier so instead of doing my Maths homework i thought what the hell why dont i make a program to do it for me. The problem is im getting an error with my NCR function.For those of you who dont know NCR is used in calculating Statistics generally it goes like this
heres the problem lets assume i have a label1 which its text is "(y+1)"i defined an integer, lets assume its x i made some operations up and lets say there can be diffrent results and i want to replace y with that math ops result and then define x as it writes in label1..
How to load file and save it as different filename? It saves almost twice the original size for some reason?
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim iFile As System.IO.File[code].....
Question 02:How to load it as numerical values?
Question 03:How to try applying an array of mathematical functions to the numerical values to see if size reduction is possible: I want to try testing all mathematical functions with any and all mathematical values of smaller size to see if the file can be compressed.
I've got a program which starts with welcome screen "Enter the number of the random variables X" and this number refers to the columns. If it is entered 5 => a DataGridView will be created with 5 columns and 2 rows (first one is for random variable entered by the user, and the second is for probability). For example:I have to multiply x1 with probability p1, value x2 with probability p2, and so on. So EX = x1*p1 + x2*p2 +... Here comes the question - how to multiply and then add them?There are only 2 rows, that's how much I need :I've enabled only 2 rows, that's how much I must have for this program:
Const allowedRows As Integer = 2 Private Sub DataGridView1_UserAddedRow(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowEventArgs) Handles DataGridView1.UserAddedRow
This is my way the dynamically generate a mathematical equation everytime the button is click. However, I want the combobox or the numericupdown turn disabled when the next question show out. For example, if the question N is generated, the combobox and numericupdown of question generated before N must be disable means that the user only can input to the current question but cant change the answer of the previous question?
Private Sub btnnext_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnnext.Click If counter < 10 Then Dim pnl As New Panel pnl.Height = 40 pnl.BorderStyle = BorderStyle.FixedSingle [Code] .....
I am making a simple calculator that will evaluate functions I have a entry box and the user types in simple equations i.e. 1+4*3/5=? how would i make this evaluate the string?
i want to make a program in which the user can input a mathematical function so the program can then work with it. So the user would input something like x^4+x+2 and then an x and the program would calculate f(x). What i don't know is how to let the user input the function.
I am trying to get a better understanding of the uses of arrays in programing, and have been wondering why do programmers use an array when working with mathematical concept such as Fibonacci sequences? why are arrays so prevalent in coding now a days.
How to use the signs "+", "-", "*", "/" as label text randomly. I am trying to create a math game for my kids. There I need a random sign to display every time they get new question to solve. I am able to display values [random numbers] but could not able to use this signs randomly as a single label text.
I'm attempting to create a listbox when a button is clicked in Visual Basic 2008. I can't seem to find code that works to do this.
Dim lstOutput As ListBox lstOutput = Me.Controls.Add("VB.Label", "List1")
Problem is that both of the things inside the parenthesis generate errors:For the first one:Value of type 'String' cannot be converted to 'System.Windows.Forms.Control'.And the second one:Too many arguments to 'Public Overridable Sub Add(value As System.Windows.Forms.Control)'.
Is it possible to create a new My.Setting item and value at runtime or does the setting already have to created? I'd like create new settings and delete settings.
I can build the tabstrip fine and name it - that part is from what I can see the easy bit.What I want to do is select a tab then create a listbox on that tab, and then pupulate the list box with data. For this test I am using the event viewer.
The system loades the logs into memory, and then creates however many system logs there are ie application, system security etc etc.
But how the hell do I select one of these tabs then draw a listbox and then address the list box - Ideally the list boxes etc will be created at the time of the tab?[code]...
I'd like to know how I can craete new forms at runtime.
Lets say I press Command1, a new form would open with a text box and a button on it. If I click Command1 again, another form would open with a textbox and a command button.
I am creating a application which one select and display swf file with frame on slider. In this program user can select range of frames.like swf file have frame range is 1 to 5000. in my app user can mark first mark on 100 frame and end point on 1000 frame. now this 100 to 1000 will be my range and in store this range in notepad.Now i want to create swf file of selected (or Created range - 100 to 1000) range. As per this process user create multiple ranges of frames.how to create swf file from created range (selected frames) in vb.net. I checked on net but i cant find how to split or runtime create swf file from selected frames of perticular swf file.