331
Calculator C / Re: Post your Nspire routines here!
« on: July 07, 2010, 10:18:40 pm »Are you supposed to be able to use floats as arguments to the sprite routine?No.
@apcalc: Post your modified scrollScreen().
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to. 331
Calculator C / Re: Post your Nspire routines here!« on: July 07, 2010, 10:18:40 pm »Are you supposed to be able to use floats as arguments to the sprite routine?No. @apcalc: Post your modified scrollScreen(). 332
TI-Nspire / Re: Virus to crack RSA for nspire? :P« on: July 07, 2010, 06:56:04 pm »
It would not take 2^256 times longer, but it would still take too long.
333
TI-Nspire / Re: Virus to crack RSA for nspire? :P« on: July 07, 2010, 06:01:13 pm »
I second Lionel Debroux's opinions on this idea.
Seriously, your time, CPU cycles, and electricity are better spent on something worthwhile than on trial-factoring a 1024-bit number. What is the "only practical method"? I thought the GNFS was currently the fastest algorithm for factoring large integers with no special form. 334
Calculator C / Re: Post your Nspire routines here!« on: July 07, 2010, 05:50:04 pm »
That sprite routine is not production ready. It works, but don't use it for anything fancy!
I need to change it to a proper sprite function that copies blocks of memory one row at a time. I also attached nmath.h/c. Please please please don't use this in sensitive programs! Its slow, poorly written, and not all that accurate (e.g. sine and cosine are approximated with a couple of power series terms) - I was just collecting some routines for personal use. Your mileage with this file will vary, depending on the program. Here's a nice way to do abs(): Code: [Select] #define abs(a) (a) > 0 ? (a) : -(a)
335
Calculator C / Re: Nspire C text output/input« on: July 07, 2010, 05:47:39 pm »
Yeah, it seems like we'll need our own display routines.
Armael PM'd me with his font data and display routines on UTI, but we need a program loader for it to work (there are workarounds, though). It turns out that drawing strings onto the screen is not all that hard, but having a proper text output routine (with scrolling, line-wrapping, etc.) is a bit harder. And I don't even want to think about input...so many getKeys! Is there an efficient way to do input, using a table or something? 336
Calculator C / Re: Post your Nspire routines here!« on: July 06, 2010, 10:01:55 pm »
Hmmm...interesting.
I remember my raycaster flickering like crazy until I got double-buffering working. Are you doing anything special? 337
Other Calculators / Re: TI-Nspire OS 2.1 out in two weeks???« on: July 06, 2010, 10:00:20 pm »
I really see no reason to upgrade to 2.1, either. I'm happily using 1.1, which has all the math features I'll ever need. The power bug is rather annoying, though.
We can probably write our own 3D grapher in C. I've been thinking about writing one myself, but it seems rather futile at this point since we don't have any way to input the function being graphed. 338
Calculator C / Re: Post your Nspire routines here!« on: July 06, 2010, 09:53:48 pm »
"Some flickering" is an understatement. Without double-buffering, animations flicker so much that they are nearly unusable.
339
Miscellaneous / Re: Silly things you did as a noob« on: July 06, 2010, 09:04:07 pm »
Back when I first started programming, it took me a couple days to find out where the For, While, If, and Then statements lived. I was very confused because typing F, O, R gave me a syntax error
340
Calculator C / Re: Post your Nspire routines here!« on: July 06, 2010, 07:36:39 pm »
There's really no reason to draw directly to the screen. Drawing to a buffer is faster and more versatile.
341
Calculator C / Re: Post your Nspire routines here!« on: July 06, 2010, 05:02:39 pm »
Like so:
Code: [Select] char* scrbuf = (char*) malloc(SCREEN_BYTES_SIZE);
342
TI-BASIC / Re: Nspire lists« on: July 06, 2010, 01:34:56 am »I hate when i cant figure out how to do something and then its super easy When i was first learning to program i accessed lists with Prod(L1,N,N)LOL, I used to do that to. 343
TI-BASIC / Re: Nspire lists« on: July 05, 2010, 11:27:04 pm »
listname[n] retrieves the nth element of a list.
344
Calculator C / Re: Nspire C Development« on: July 05, 2010, 11:26:16 pm »
Post your modified code, if any.
345
Calculator C / Re: Post your Nspire routines here!« on: July 05, 2010, 06:18:40 pm »
It's a double-buffer, allocated with malloc() in the calling program. It allows for flicker-free animation.
|
|