473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Can visual basic give mathematical answers in roots?

Hey guys

I just wanted to know if i wanted to multiply √2 and √3 to get √6 as an answer. Is this possible? I would love it if someone could please help me...


Thanks!
Mar 10 '07 #1
4 1044
vijaydiwakar
579 512MB
Hey guys

I just wanted to know if i wanted to multiply √2 and √3 to get √6 as an answer. Is this possible? I would love it if someone could please help me...


Thanks!
yes i'll help u
try this code
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub Form_Load()
  3. MsgBox Sqr(2) * Sqr(4) * Sqr(6)
  4. End Sub
  5.  
  6.  
Mar 10 '07 #2
Killer42
8,435 Expert 8TB
I just wanted to know if i wanted to multiply √2 and √3 to get √6 as an answer. Is this possible? I would love it if someone could please help me...
I think it's fair to say that if you can define what you want to do with enough precision, VB or just about any programming language can do it.

In the case of VB, finding a square root is simple enough with the SQR function (though I don't know how accurate it is), but how you would convert your answer to give √6 is beyond me. You may have to develop the logic of how to do this sort of thing, then if necessary we can help with the actual code.

(Note, to help much we'll need to know what version of VB, too.)
Mar 10 '07 #3
I am using visual basic 8 (visual studio 2005).

Thanks for your replies (bhaiyya!)

Anyways, i want to be able to make a program where instead of a crazy decimal, i want to give the answer in surd form (eg 2 [root]3)... is this possible?


thanks
Mar 10 '07 #4
Killer42
8,435 Expert 8TB
I am using visual basic 8 (visual studio 2005).

Thanks for your replies (bhaiyya!)
Huh?

Anyways, i want to be able to make a program where instead of a crazy decimal, i want to give the answer in surd form (eg 2 [root]3)... is this possible?
Like I said, you need to define exactly what it is you want the program to do, not just the end result. I don't think VB is the issue in this case - the issue is precisely what you want the program to do.

I mean how does one, mathematically, go about producing such a result? If you can explain how to do the job, we can help you with the VB coding.

I think this goes to the very heart of what programming is. In order to explain to a computer how to do something (in other words, write a program) you need to understand what you want it to do.
Mar 11 '07 #5

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

Similar topics

17
by: Andi Plotsky | last post by:
I am not a .NET developer. I want the Developer's Edition of Visual Studio for use with my Access2000 databases. Does anyone have a clue as to where to find it - my office manager says only .NET...
8
by: Brian | last post by:
I have a vb.net application which runs fine when installed locally on a user machine but when the application is run from a network drive a security exception error occurs. I've set the intranet...
0
by: Juan R. | last post by:
I have updated some basic requirements for a generic mathematical markup language for scientific requirements at the next link. ...
0
by: software2006 | last post by:
ASP And Visual Basic Interview questions and answers I have listed over 100 ASP and Visual Basic interview questions and answers in my website...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
7
by: RFleming | last post by:
I am not trying to come across as trying to get all my questions answered without doing any work, I am just hoping for someone(s) to suggest the best places and terminology to use when trying to...
25
by: samjnaa | last post by:
Please check for sanity and approve for posting at python-dev. In Visual Basic there is the keyword "with" which allows an object- name to be declared as governing the following statements. For...
6
by: Salman | last post by:
I would like to know how I can distribute the application that I create with Visual C++ express edition. I checked the menu options to find a deploy option similar to the one found on the Visual...
4
by: Chris Asaipillai | last post by:
Hi there My compay has a number of Visual Basic 6 applications which are front endeed onto either SQL Server or Microsoft Access databases. Now we are in process of planning to re-write these...
2
kadghar
by: kadghar | last post by:
Many people asks if there is a way to write a mathematical expression, writen as a string in a text box, so they can do something like: sub something_click() textbox2.text=eval(textbox1.text)...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...

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.