This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Author Message
JoeImp
Enlightened


Active Member


Joined: 24 May 2003
Posts: 747

Posted: 04 Jun 2003 02:18:06 pm    Post subject:

I think I know what you mean. You can make a program do this, but I'm not quite sure how, there's a program at Ticalc.org under Basic-Math progs called RadRed that does the trick, look through the source to get some ideas, but don't steal it! Neutral
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 04 Jun 2003 02:23:56 pm    Post subject:

there is a prog to do it? aww, man, i could have used that last year!
Back to top
SniperOfTheNight


Advanced Member


Joined: 24 May 2003
Posts: 260

Posted: 04 Jun 2003 02:38:16 pm    Post subject:

I didn't think you could do that. I guess you could do that in basic, but I've never even though about doing that. It probably can be done, but we'll leave the answer up to Jbirk,David,or Justin Very Happy
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 04 Jun 2003 02:46:03 pm    Post subject:

ya, they seem to be the smart ones around here... Very Happy
Back to top
SniperOfTheNight


Advanced Member


Joined: 24 May 2003
Posts: 260

Posted: 04 Jun 2003 02:59:06 pm    Post subject:

Smarter,probably but not definetly. Better at programming,yes,definetly,no question about it.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 04 Jun 2003 03:00:39 pm    Post subject:

ya, that's what i meant... i think they aut to make some big commercial program and sell it to get rich!
Back to top
Jeremiah Walgren
General Operations Director


Know-It-All


Joined: 24 May 2003
Posts: 1937

Posted: 04 Jun 2003 03:29:22 pm    Post subject:

Hehe, the TI-89 automatically simplifies radicals for you, and it gives the answer in radicals as well. (Unless you tell it otherwise.) Really helps in some areas... Very Happy
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 04 Jun 2003 04:20:46 pm    Post subject:

We are not smarter, but we may appear that way sometimes because we have been know to spend up to 6 hours programming and finding things out.

Now, I wrote a basic program to do radicals before, but it was not great.

All it did was search using two for loops.

e.g.

for(A,1,20
for(b,1,20
if #=A(radical)B
then
;tell the user
end
end
end

That was about it.

# was the ans, so once you had an anser, you could run a program and pray you got a radical.

To tell you the truth, it worked only about 80% of the time and was much larger than the above because it intelligently guessed ranges, and had some string stuff to make the answer a string by converting reals to strings and alligning the string to the right.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 04 Jun 2003 06:49:33 pm    Post subject:

cool, so ur saying u made it really smartly guess :D

and u guys are pretty cool cause u know so much about the workings of a calculator!
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 05 Jun 2003 01:37:21 am    Post subject:

What do you mean innerworkings?

TI-BASIC has nothing to do with the inner workings of the calculator unless you think of the parser as an assembly program executed by a CPU.

Even then, few think of the assembly that takes place when a basic program is running.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 05 Jun 2003 04:55:01 am    Post subject:

What are radicals ? Neutral
Back to top
z_boy


Newbie


Joined: 04 Jun 2003
Posts: 2

Posted: 05 Jun 2003 02:20:33 pm    Post subject:

Radicals are a way to reduce square/cube/etc roots that would otherwise contain a decimal. Such as the square root of 8. With a radical it wouldf be 2 Sqaureroots of 2. because 4 * 2 = 8 and 4 can be sqaurerooted to 2. So the 2 from the 4 goes to the outside of the squareroot symbol and the remaining 2 (which can't be squarerooted without a decimal) stays on the inside of the suqare root.
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 06 Jun 2003 02:23:34 am    Post subject:

It is also important to realize that radicals can be wrighten as exponents.

e.g.

Sqrt(4) is 4^(1/2)

Cuberoot(5)^2 is 5^(2/3)

I am going to move this to the TI-Basic Forum and make a link.
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 06 Jun 2003 07:54:56 am    Post subject:

Ah, thanks, guess we still have to get that subject at maths, already learned about the sqrt(4) = 4^.5 though.

Would it happen to be the same as ³(sqrtsign)(Cool=2 or is it more like 2²*4=16, ie. 4 squareroots of 2=16 ?
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 06 Jun 2003 07:41:25 pm    Post subject:

four root two does not equal sixteen
Back to top
NETWizz
Byte by bit


Bandwidth Hog


Joined: 20 May 2003
Posts: 2369

Posted: 07 Jun 2003 02:03:54 am    Post subject:

4^2 = 16

16^(1/2) = 4


Last edited by Guest on 07 Jun 2003 02:04:14 am; edited 1 time in total
Back to top
Xan


Newbie


Joined: 30 May 2003
Posts: 19

Posted: 07 Jun 2003 02:59:35 pm    Post subject:

no:
sqrt(Cool=sqrt(4*2)=sqrt(2²*2)=2*sqrt(2) Razz
Back to top
Spyderbyte


Advanced Member


Joined: 29 May 2003
Posts: 372

Posted: 08 Jun 2003 12:03:17 am    Post subject:

Omnicalc will simplify radicals for you, and I wrote a program that did it too.


Code:
ClrHome
"0123456789"üStr2
Input "simpÍð",C
Input "X=",D
For(B,int(DÍðC)+1,1,ú1
If C/B^D=int(C/B^D)
Then
BüA
prgmNUM2STR
If C/B^D=1
Then
Disp Str1
Stop
End
Str1+"*"üStr3
DüA
prgmNUM2STR
Str3+Str1+"Íð("üStr3
C/B^DüA
prgmNUM2STR
Str3+Str1+")"üStr3
Disp Str3
Stop
End
End


Which used Num2Str:


Code:
sub(Str2,10fPart(A/10)+1,1)üStr1
While 9÷A
int(A/10üA
sub(Str2,10fPart(A/10)+1,1)+Str1üStr1
End
Return


BTW, the divide sign (NOT the "/") means (less than or equal to), the dotted u means ->, and the accented I and weird o is the XSquareroot sign. Item 5 in the math menu.

I think it should all work, I haven't used it for a while and can't remember the details.

Hope this helps!

Spyderbyte
Back to top
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 29 Jun 2003 09:35:47 pm    Post subject:

Oh, and a note, this doesnt ork for decimals!
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page 1, 2  Next
» View previous topic :: View next topic  
Page 1 of 2 » All times are UTC - 5 Hours

 

Advertisement