Omnimaga

Calculator Community => Discontinued => Major Community Projects => Correlation => Topic started by: Hot_Dog on November 18, 2010, 03:24:37 pm

Title: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 03:24:37 pm
I'm having issues with using Output( in Correlation.  This is because the TI-OS is stupid and doesn't translate Output() the same way it translates other Ti-Basic functions.  To get Output( to work with Correlation, a person would only be able to use variables, numbers and strings for the arguments, with ABSOLUTELY NO MATH being done.  For example, this would be acceptable:

Output(1, A, Str1)

This would not be:

Output(A + 5, B-6, sub(Str1, 3, 4)

However, if I use ln( instead of Output, a Ti-Basic programmer would be able to input math normally.  In addition, for converting Ti-Basic programs to use Correlation, all one would need to do is replace Output( statements with ln( statements.

Why ln( ?  To save space, because it takes only one byte.  Real( takes 2 bytes.

Please vote, and comment as well!
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: ASHBAD_ALVIN on November 18, 2010, 03:47:50 pm
ln() then, so that people can also do the real output() at the same time.  Also, in BASIC I always used tons of math in my output() args, so I would go for ln() for that reason too.
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: ztrumpet on November 18, 2010, 03:50:13 pm
I'd like to be able to use the TIOS font and Correlation at the same time, so I voted for ln(). :)

Can ln() be used normally too?
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Deep Toaster on November 18, 2010, 03:55:48 pm
And I guess ln( could be taken to mean line, so I voted for it as well :)
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Builderboy on November 18, 2010, 04:07:39 pm
i voted for Ln() too.  That way you can use math, you can still use output(), and its all good :)  And thanks for not choosing log, as thats sometimes used for digit calculator, probably used more often than ln()
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Raylin on November 18, 2010, 04:12:23 pm
ln() definitely. I'd die without in-line math in my Output(). :(
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: squidgetx on November 18, 2010, 05:12:18 pm
People can always use changeofbase formula to do natural logs if they need to. Ln() is great, plus it looks like "line()" which is sort of relevant (as Deep Thought said)
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Xeda112358 on November 18, 2010, 05:39:38 pm
I went with ln(, too, because I know how much Output( hates anybody trying to parse it themselves :D Plus, I only use ln( on my 89.
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: calc84maniac on November 18, 2010, 05:44:34 pm
Wait, you mean you aren't using a font hook (http://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B9C)?
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Xeda112358 on November 18, 2010, 05:45:46 pm
That's what I said :D
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Builderboy on November 18, 2010, 06:50:12 pm
I think he is ditching the font hook idea for speed and so that he can customize any type of sized character
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 07:06:04 pm
Wait, you mean you aren't using a font hook (http://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B9C)?

Like Builderboy said: It's for speed and any-size characters.  In addition, it allows for multiple fonts in one program.

Ln() it is then.  For those who really want to use Ln() afterwards, they can turn off the parser hook inside of their Ti-Basic program.

I thought about people who want to use Output() as well as Ln().  For people who want to use the regular small font as well as a customized small font, I'm thinking that e^( will be the token for customized Text(, so that Text( can still be used.
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: ztrumpet on November 18, 2010, 07:06:43 pm
Sounds great!  Good luck. :)
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Builderboy on November 18, 2010, 07:10:15 pm
Hooray!  And out of curiosity, what would happen if we tried Ln(e^(0,0,"HI")) :D
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 07:12:20 pm
Hooray!  And out of curiosity, what would happen if we tried Ln(e^(0,0,"HI")) :D

Good thinking.  An ERR:INTERFERENCE will occur.  Same with e^(LN(0,0,"HI"))
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Builderboy on November 18, 2010, 07:15:30 pm
Or maybe you could do some hyper optimizations and have it return the String that it displays.  Like Ln(0,0,"HI")->Str1 would display the string and then store it into Str1.  You could display a string at two different locations Ln(0,0,e^(0,0,"GAME")) ;D
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 07:18:18 pm
Or maybe you could do some hyper optimizations and have it return the String that it displays.  Like Ln(0,0,"HI")->Str1 would display the string and then store it into Str1.  You could display a string at two different locations Ln(0,0,e^(0,0,"GAME")) ;D

Not a bad idea, but (sarcastic) how often does that get used ;D  I would do it if people wanted to use it often enough
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: ztrumpet on November 18, 2010, 07:19:57 pm
Or maybe you could do some hyper optimizations and have it return the String that it displays.  Like Ln(0,0,"HI")->Str1 would display the string and then store it into Str1.  You could display a string at two different locations Ln(0,0,e^(0,0,"GAME")) ;D
I'd use it if it was a feature. :)
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 07:21:20 pm
Or maybe you could do some hyper optimizations and have it return the String that it displays.  Like Ln(0,0,"HI")->Str1 would display the string and then store it into Str1.  You could display a string at two different locations Ln(0,0,e^(0,0,"GAME")) ;D
I'd use it if it was a feature. :)

There's one.  Anyone else?
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Builderboy on November 18, 2010, 07:22:45 pm
Oooh ooh oooooh me me me me!  Seriously though displaying and storing text on the same line is pretty awesome in my opinion ^^
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Deep Toaster on November 18, 2010, 07:29:07 pm
Wait, you mean you aren't using a font hook (http://wikiti.brandonw.net/index.php?title=83Plus:Hooks:9B9C)?

Like Builderboy said: It's for speed and any-size characters.  In addition, it allows for multiple fonts in one program.

Ln() it is then.  For those who really want to use Ln() afterwards, they can turn off the parser hook inside of their Ti-Basic program.

I thought about people who want to use Output() as well as Ln().  For people who want to use the regular small font as well as a customized small font, I'm thinking that e^( will be the token for customized Text(, so that Text( can still be used.
/me likes that idea too. It matches the theme ;D
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: FinaleTI on November 18, 2010, 08:42:30 pm
ln() sounds good. I use math very often with output statements.
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 08:52:24 pm
Oooh ooh oooooh me me me me!  Seriously though displaying and storing text on the same line is pretty awesome in my opinion ^^

Actually, I can do displaying and storing text at the same time.  HOWEVER, I'm afraid I won't be able to have text displayed on both screens at the same time, such as ln(0,0,e^(1,1, "THE GAME")), not when using custom fonts.  Sorry :(
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: DJ Omnimaga on November 18, 2010, 09:03:58 pm
ln() definitely. I'd die without in-line math in my Output(). :(
Same. I never made a BASIC homescreen-only game that only uses constants as Output arguments. I voted ln().
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Xeda112358 on November 18, 2010, 10:40:06 pm
I have it! This is a hook I just made (with one random function, one cool function, and one really cool function). The trick though is that if you do ln(3), it will return the actual answer. However, ln(0,0) will execute the first function, not ln(

-The functions are 2 key related functions and an advanced function that lets the user edit a program or variable at the byte level.
-This is built off from one of my actual programs that use the int( token, but I changed it to ln( for this purpose
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Hot_Dog on November 18, 2010, 11:13:20 pm
I have it! This is a hook I just made (with one random function, one cool function, and one really cool function). The trick though is that if you do ln(3), it will return the actual answer. However, ln(0,0) will execute the first function, not ln(

-The functions are 2 key related functions and an advanced function that lets the user edit a program or variable at the byte level.
-This is built off from one of my actual programs that use the int( token, but I changed it to ln( for this purpose

Not only do I like the idea, I'm incorporating it!

By the way, in your experience, do you find that Ti-Basic programs run slightly slower with the parser hook on, or is the difference unnoticable?
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: Xeda112358 on November 18, 2010, 11:14:58 pm
This difference is not noticeable from what I can see. Maybe a hundred thousandths of a second slower by my calculation... :D
Title: Re: Correlation: Vote on Output( with restricted arguments or ln(
Post by: DJ Omnimaga on November 18, 2010, 11:23:00 pm
It depends of the app. Omnicalc 1.1 or lower slowed down BASIC programs by half. 1.2 isn't as bad, xLIB is less noticeable and I think the others are even less bad in terms of slow down.