Author Topic: variables  (Read 2942 times)

0 Members and 1 Guest are viewing this topic.

Offline joao9856

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
    • View Profile
variables
« on: July 14, 2013, 07:03:04 pm »
can i add numbers to avariable like this

a:=1
b:=2
b:=ba
b:=21

no multiplication wanted

Ti-Nspire CX

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: variables
« Reply #1 on: July 15, 2013, 01:09:33 am »
It's not possible this way but you can do :
b:=b*10^(int(log(a))+1)+a
This formula will give you what you want but I'm not sure about syntax on the Nspire. :/

Offline joao9856

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
    • View Profile
Re: variables
« Reply #2 on: July 15, 2013, 07:15:23 am »
tat would give 200 with the example numbers :-\, and if i use bigger numbers like 97 and 84 it gives me 9.7E87, any other ideas?

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: variables
« Reply #3 on: July 15, 2013, 07:33:17 am »
tat would give 200 with the example numbers :-\, and if i use bigger numbers like 97 and 84 it gives me 9.7E87, any other ideas?
Weird I tried it on my 84+ and it worked fine. :/

Offline Hayleia

  • Programming Absol
  • Coder Of Tomorrow
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3367
  • Rating: +393/-7
    • View Profile
Re: variables
« Reply #4 on: July 15, 2013, 07:34:47 am »
Weird, I just tried on my CX CAS and it worked fine too.
Are you sure that what you are writing is actually b*10int(log(a))+1+a and not b*10int(log(a))+1+a ?
« Last Edit: July 15, 2013, 07:50:47 am by Hayleia »
I own: 83+ ; 84+SE ; 76.fr ; CX CAS ; Prizm ; 84+CSE
Sorry if I answer with something that seems unrelated, English is not my primary language and I might not have understood well. Sorry if I make English mistakes too.

click here to know where you got your last +1s

Offline joao9856

  • LV3 Member (Next: 100)
  • ***
  • Posts: 73
  • Rating: +3/-0
    • View Profile
Re: variables
« Reply #5 on: July 15, 2013, 07:54:49 am »
thanks, i was doing it wrong x.x