473,511 Members | 14,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vis basic and Bisection method

1 New Member
Hi. I'm looking for some help with the Bisection method in Visual Basic, which I'm using for the first time as part of a university project. I am using the bisection method to work out the water level of a river for a given flow.

My variables are Wla, Wlb, Wlc, I have a sub routine called Qcalculate which calculates the discharge using the bisection method.

My problem is my original Wlb, I did have it set at a ridiculously high level that will always be higher than the water level for any Q set, but my tutor has mentioned that theoretically he could always specify a level of flow (Q) that will lead to my Wlb being too low and as such I will get an endless loop in my Qcalculate subroutine.

So I am looking for a bit of code that ensures (in a loop?) that the Q for Wlb will be higher than the given Q.

Really sorry if this post doesn't fully explain my problem but I’m groping around in the dark due to my lack of knowledge of the platform I'm using! Any help would be amazing, thanks a lot. Laurence
Jan 9 '08 #1
1 3443
Killer42
8,435 Recognized Expert Expert
Perhaps you could show us the Qcalculate routine?
Jan 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

18
2049
by: anand | last post by:
*********************************************************************************************************** #include<stdio.h> #include<conio.h> #include<math.h> void main() { double...
8
22519
by: aruna | last post by:
to write a c program to find the roots of the equation using bisection method that too using array or pointers
1
4350
by: salman patni | last post by:
hi myself patni salman i am studied in amit collage aurangabad.i need solution of bisection method program using c language with algorithm
2
5678
by: t4zone58 | last post by:
Hey guys! I am beginner at VB studying. I got confused with solve the functions by applying bisection method in VB. Basically I can understand the bisection method mathmatically. However i got...
1
7639
by: Cappo | last post by:
Hi, I wrote befor about the bisection method in C++. This time I managed to make two source's and compile them. But both give me some error that i don't understand. Here are the codes: #include...
1
1717
by: beneyam | last post by:
i want to develop a program on bisection method using c++. the program should ask user to enter the function and the no of iterations at the run time. any one do this i really appreciate. 10qs 4...
2
3157
by: Baba sina | last post by:
How can I solve f(x) with bisection method with the interval ?
1
2363
by: zxipo | last post by:
the numerical prolem is is x*x*x*x-4*x-10=0 this to be solve by bisection method
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.