|
-
Sep 7th, 2000, 02:25 PM
#1
Thread Starter
New Member
First off I'm working on something to do Trig Calculations, Like changing Degrees to Radians, and being able to enter either the degrees and/or coordinates of a angle to be able to get the 6 different trig functions. Now does anyone have any help with these problems?
Next:
1. How can I enter in a Square root to use as a calculation? No Calc to sqr, but enter it into a txt box?
2. Whats the best way to return a answer in fraction form?
3. Is there a way to return a answer as a square root and not in a decimal form?
Well Thats it for now, Thanks
NoClue
-
Sep 7th, 2000, 02:59 PM
#2
Addicted Member
Well, I'm not sure if I understood the first question, but I take it that you want the user to input a number, and then get the squareroot.
I would do like this:
Numb = Val(Text1.Text) 'The number the user inputs
Numb = Sqr(Numb)
As for the third, you can of course use this:
'Numb is the number you want to write as a squareroot.
Numb = Numb^2
text1.text = "Squareroot of " & Numb
That would return the answer as a square root in the textbox Text1
As I said, it might be that I've misunderstood your questions, i'm not sure.
If this is not what you want, please post a bit more clearer.
I'm thinking of number two, and I will post here as soon as I've found out (I've done it for a TI-83, it's just a matter of my memory...)
Good Luck!
Pentax
Wilhelm Tunemyr,
Swede in London
[email protected]
"Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
Heinrich Heine (1797-1856)
Pravda vítezi!
(Truth prevails!)
-
Sep 7th, 2000, 03:02 PM
#3
Lively Member
goto help trigonometric functions and choose Derived Math Functions
1. can't understand your wording - Sqr function?
2. have to write your own function to get your accuracy
like if you want 32nds you must round to the nearest 32nd
dim s as String
dim x as double
s = Str(Fix(num))
x = num - Fix(num)
x = Fix(x * 32 + .5)
s = s & Str(x) & "/32"
3. convert as in 2
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|