Omnimaga
Calculator Community => TI Calculators => Lua => Topic started by: kyllopardiun on August 21, 2011, 05:11:56 pm
-
I know that there is a sample from TI, that shows that it's possible.
But I couldn't really understand that file riemann.lua
Does anyone know how I can I do it, or know a better example for understanding.this?
I just need a calculation sheet, so the user can input a function e.g. define f2(abobora)=1/abobora!
-
You never used the split screen function before Lua ?
You can do so with Doc> 5 2 when you have a document open.
-
Yes I have used it, and I just figured it out, after pasting some lua code
I was looking for a way to split the screen using lua code, and I read that code at least 12 times,
looking where it was done :-[
-
I don't think it is done in the Lua code proper, but in the XML wrapper of the TNS document (which is then compressed with the proprietary & patented XML compression, ZLIB-compressed and encrypted).
IIRC, Levak made a TNS Lua generator that can output documents in split screen mode.
-
I was looking for a way to split the screen using lua code, and I read that code at least 12 times,
looking where it was done :-[
No, there is no way you can split the screen in pure-lua. a lua script is embedded in a "widget", and when you split the screen, it just creates a place for another widget, where everything (including another lua script) can go.
So, splitting the screen has nothing to do with the lua code itself.
If you're looking to know how some variables are shared between these widgets, take a look at the 'var' APIs (http://wiki.inspired-lua.org/on.varChange)
-
Thanks, just one more question:
How can I handle the attempting to compare number with nil in:
teste=math.eval("lim(equ(n),n,8,1)")
if teste>0 then
(...)
[code]
[/code]
-
just do :
if teste then
....
end