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 Brain Teasers => TI-BASIC
Author Message
frenchcalc1
جان ألعريم


Active Member


Joined: 14 Mar 2007
Posts: 648

Posted: 01 May 2007 05:25:01 pm    Post subject:

I have a challenge (I know it won't be for some of you Razz ):
Make a small program that will calculate the logarithm of any base.
For example:
log A=X
___d

log(to the base d)A=X
Where d is inputted by the user, and A as well. Please ask for more clarification, if you do not understand my poorly written post Laughing


Last edited by Guest on 01 May 2007 05:25:54 pm; edited 1 time in total
Back to top
stlcards08


Newbie


Joined: 04 Mar 2007
Posts: 35

Posted: 01 May 2007 05:26:29 pm    Post subject:

frenchcalc1 wrote:
I have a challenge (I know it won't be for some of you Razz ):
Make a small program that will calculate the logarithm of any base.
For example:
log  A=X
___d
Where d is inputted by the user, and A as well. Please ask for more clarification, if you do not understand my poorly written post Laughing
[post="102507"]<{POST_SNAPBACK}>[/post]


Is that supposed to be log base d of A=X?

[Edit]
PROGRAM:A

Code:
:Prompt A,D
:log(A)/log(D


21 bytes


Last edited by Guest on 01 May 2007 05:31:32 pm; edited 1 time in total
Back to top
frenchcalc1
جان ألعريم


Active Member


Joined: 14 Mar 2007
Posts: 648

Posted: 01 May 2007 05:27:22 pm    Post subject:

Yes, it is. Sorry for not clarifying.
Back to top
Super Speler
Super Awesome Dude


Calc Guru


Joined: 28 Nov 2005
Posts: 1391

Posted: 01 May 2007 05:28:49 pm    Post subject:

log(ans(1))/log(ans(2

Where ans(1 is equal to A and ans(2 is equal to the base.
Back to top
frenchcalc1
جان ألعريم


Active Member


Joined: 14 Mar 2007
Posts: 648

Posted: 01 May 2007 05:30:17 pm    Post subject:

Super Speler wrote:
log(ans(1))/log(ans(2

Where ans(1 is equal to A and ans(2 is equal to the base.
[post="102510"]<{POST_SNAPBACK}>[/post]

Wow, such a quick response! I guess it wasn't much of a brain teaser, now was it ?Rolling Eyes


Last edited by Guest on 01 May 2007 05:30:45 pm; edited 1 time in total
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
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement