Author Topic: Any Reason This Shouldn't Work?  (Read 9454 times)

0 Members and 1 Guest are viewing this topic.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Any Reason This Shouldn't Work?
« on: October 06, 2010, 04:59:28 am »
Ok, so I started working on my own version of a calendar generator, just for the fun of it. But when I get to my display routine something happens and I can't figure out why it's happening :( It really is not making any sense to me and I can't explain this.

The code section is this:

Code: [Select]
Text(H,12F-9,E
H=14
F=4
E=1


It just doesn't make sense to me because Text(H,39,E and other things without a variable in the second argument work fine. Anyone know?
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Any Reason This Shouldn't Work?
« Reply #1 on: October 06, 2010, 11:40:39 am »
It works for me, weird. Maybe it's a bug in your version of the OS? I'm using a TI-83 Plus OS 1.19, btw.




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Any Reason This Shouldn't Work?
« Reply #2 on: October 06, 2010, 11:44:32 am »
That's what I figured, that it should work. Ugh. This is bugging me now. This has never happened before :(
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Any Reason This Shouldn't Work?
« Reply #3 on: October 06, 2010, 11:47:30 am »
Are you sure that the variables are those numbers?  Try putting an iPart() around the variables?

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Any Reason This Shouldn't Work?
« Reply #4 on: October 06, 2010, 11:51:05 am »
Ah, maybe they somehow got saved as complex numbers? Just an idea.




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Any Reason This Shouldn't Work?
« Reply #5 on: October 06, 2010, 11:53:23 am »
Either way, what is the problem?  Like that is the error?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Any Reason This Shouldn't Work?
« Reply #6 on: October 06, 2010, 11:55:32 am »
Well each time I get the domain error I always check what U (well now it is U instead of F) and it returns four. But I did put the iPart( around it and it seems to have fixed it ???
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Any Reason This Shouldn't Work?
« Reply #7 on: October 06, 2010, 11:56:37 am »
If you're calculating F inside a program, vars often have 0.00000000000001 or something inaccuracy, especially when it's calculated after a bunch of operations. It's horrible to debug x.x I've actually given up several projects before before I found that bug. Stupid TI-OS :(
« Last Edit: October 06, 2010, 11:58:13 am by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Any Reason This Shouldn't Work?
« Reply #8 on: October 06, 2010, 11:59:59 am »
Well I use round(#,0 in it but that should just return the integer part of a number, without any decimal places.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Any Reason This Shouldn't Work?
« Reply #9 on: October 06, 2010, 12:01:39 pm »
It didn't work after round(#,0? O.o That's weird.




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Any Reason This Shouldn't Work?
« Reply #10 on: October 06, 2010, 12:04:20 pm »
No, it all works. I'm just saying that if you're right about it tacking on a negligible decimal point that is the only place I could see it coming from.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Any Reason This Shouldn't Work?
« Reply #11 on: October 06, 2010, 01:47:55 pm »
Yeah, and the homescreen automatically rounds so that you always are looking at these horrible numbers like 23.000000000008 all the time

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Any Reason This Shouldn't Work?
« Reply #12 on: October 06, 2010, 05:46:52 pm »
Press [Math] [0] (hold [up] after this if need be) and make the equation the vars you want (H, F, and E).  Press [enter] then [down].  Enjoy learning about the variables in their entirety! ;D
« Last Edit: October 06, 2010, 05:48:14 pm by ztrumpet »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Any Reason This Shouldn't Work?
« Reply #13 on: October 06, 2010, 06:01:45 pm »
Hey thats a much faster version of what i do!  I usually put them into a list and view them in the List editing menu :P

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Any Reason This Shouldn't Work?
« Reply #14 on: October 06, 2010, 06:18:04 pm »
Wait, what is that supposed to do exactly?

Also, is iPart( the only solution to this? I thought round( would solve it all but I guess not :(
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)