Show Posts

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.


Messages - ruler501

Pages: 1 ... 34 35 [36] 37 38 ... 184
526
Casio Calculators / Re: pSDL v0.1.0
« on: June 26, 2012, 12:59:42 am »
maybe currently they are very limited though I'm working to try and fix that though there is not much i can do right now

EDIT: forgot i posted this merged later post

First real complicated program on the prizm is a basic fire demo



EDIT: attatched g3a of demo it should work and exit after 2.5 seconds but I'm sorry if it doesnt and please dont hold me responsible for any damage it does to you calc as i have only tested on manager software so far

527
Math and Science / Re: Least amount of change
« on: June 26, 2012, 12:31:11 am »
That's cheating.

Let's break up in denomination of less than $1, 25¢, 10¢ and 5¢, respectively.

So to make anything less than $1, you'll need 3 quarters max.
Less than 25¢: 2 dimes max.
Less than 10¢: 1 nickel max.
Less than 5¢: 4 pennies max.

So 3 quarters, 2 dimes, 1 nickel and 4 pennies will make anything 1-99¢. The amount of coins when you enter will be at minimum and when you go out will also be at minimum since the cashier won't give you any change.

Or else you can carry one $1 coin (we have that in Canada, dunno in US) and the cashier will give minimum change.
i say this is the same as my original answer event though i didnt explain all of it or understand the problem ;)

528
Math and Science / Re: Least amount of change
« on: June 26, 2012, 12:21:21 am »
So, no one likes to carry around change (coins) and my question is, what coins should you enter a store with so that sum of the number of coins you enter a store and leave a store with is at a minimum?

The general idea here is that you basically want to carry the least amount of change. So, the way this works, is you pick E number of coins to enter with, after buying your items (which have random number of cents) you leave with L number of coins. You want to minimize L + E.

Rules:
  • We're using American coins, so the choices are: penny - .01, nickel - .05, dime - .10, quarter - .25 (no half dollars, too rare :P)
  • The number of cents your purchase costs is random (So, a purchase would cost some dollar amount + [0 - 99] cents)
  • You receive the minimum number of coins from the cashier ($.90 is not 9 dimes)
You enter with no coins & you leave with no coins, and that is the least amount of change you have to bring. If you want to buy something, use a credit card ;)
cheating :P

I think we agreed on irc that you enter with none so that the max you will ever have is 10(see my first reply for why)

529
Math and Science / Re: Least amount of change
« on: June 26, 2012, 12:02:27 am »
depends is it just when you leave that you count coin or the average of when you left/entered?

530
Casio Calculators / Re: pSDL v0.1.0
« on: June 25, 2012, 11:59:52 pm »
IkaTari said in a few days there might be a way to fix the problem with not being able to allocate enough space for 16 bpp surfaces so that may not be such a large problem

531
Math and Science / Re: Least amount of change
« on: June 25, 2012, 11:54:59 pm »
isnt it 4 pennies one nickel two dimes and 3 quarters since you can make any change out of that combination

for 1-4 cents use the pennies
for 5-9 use one nickel and the neccesary pennies
for 10-19 use 1  dime and the pennies/nickel for the remainder
for 20-24 use two dimes and pennies
for 25-29 use quarter and pennies
for 30-34 use quarter, nickel and pennies
for 35-39 use quarter, dime and pennies
etc.

and i have 3 half dollars if you look for them they are still rare but not too hard to find a few
I also have a dollar coin and thats pretty rare or at least used to be

532
Casio Calculators / Re: pSDL v0.1.0
« on: June 25, 2012, 11:41:39 pm »
Attached is the image of the first SDL program to run succesfully with video on the prizm


EDIT: wow just realized that this is now a quadruple post

You should be able to run any 8bpp program with pSDL on the prizm with little modification

533
Casio Calculators / Re: pSDL v0.0.1
« on: June 22, 2012, 11:47:16 pm »
I'm slowly working through the errors but I am finding things that are missing that need to be added to the SDK for it to compile.
The things I've found so far that need implementation are:
stdint.h (Though i think I got this working acceptably you can see my slightly modified version of it in the include folder of the most recent commit)
stdarg.h(for va_list)
and probably more but until I get past one I can't see the next problems

534
Casio Calculators / Re: pSDL v0.0.1
« on: June 16, 2012, 12:22:12 am »
I had some pretty serious errors in how I built it I have fixed that in the most recent commit but now there are lots of build errors

I'm going to be in the mountains of new mexico on a hike for the next 9 days so if someone else could work on it and maybe get something fixed I would much appreciate it

535
Humour and Jokes / Re: 9001 signs you're addicted to calcs and Omni
« on: June 15, 2012, 08:23:38 pm »
2915: You panic when you realize your friend who goes to another school has your calc and feel insanely relieved when you get it back 2 weeks later(not that this is any specific story)

536
Casio Calculators / Re: pSDL v0.0.1
« on: June 15, 2012, 06:51:15 pm »
We can set that later as what happens when SDL_FULLSCREEN is passed as a flag to the video surface. I'd rather not work on that till I get this working

To get this to compile I define HAVE_MALLOC in the build command so that SDL_malloc.c does not compile. When I do this though I get errors later that a number of functions aren't defined. I think I need to have SDL_malloc.c compile but to do so I have to have the stdlib functions in it work. I'll look through it and try to make a list of what needs to be implemented also if someone could look through it and help find areas that can be worked together without the stdlib or with functions already implemented that would be great

EDIT: these are the compile errors from my test program with SDL http://pastebin.com/Z2EeK5KA

537
Casio Calculators / Re: pSDL v0.0.1
« on: June 15, 2012, 03:42:52 pm »
Thanks for now I'll just run through the tests and see how that works once I get my calc

538
Casio Calculators / Re: pSDL v0.0.1
« on: June 15, 2012, 03:23:06 pm »
I fixed the calc compile by adding a HAVE_MALLOC define to the prizm config not sure if this may break something later on but for now it compiles succesfuly with the sdk. I'm going to reupload the correct version to github as a download if someone could try to see if it works on calc. I won't have a calc available for another 30 min or so so I can't test it myself

539
Casio Calculators / pSDL v1.0.0
« on: June 15, 2012, 12:30:59 pm »
I have been working on porting nSDL to the prizm so people can write one program to run on both prizm and both nspires. It now even compiles for on calc :D so it should be ready for anyone who wants to to test it. Until it gets to version 1 and I get most bugs out I will not be distributing binaries so you will have to build it. To compile it run make -f Makefile.prizm and it should compile. to install it assumes you built it in the /projects directory of the prizm sdk then run make -f Makefile.prizm install to install it to your prizm sdk

I need people to help me find any errors I might have made and to test the library. If someone could please help me the code is at https://github.com/ruler501/pSDL It now compiles fine and will run if you use a 8 bit surface. malloc seems to fail if it tries to use a 16bpp surface the size of the screen. If someone could please find a way to get malloc working with large values that could allow much more usability

I could not have done this without hoffa's wonderful nSDL. I have copied most of his code and only changed the parts that are platform specific(mainly).

DEMO:

This is a demo of a program called explosion I cannot currently remember where I got it from. Other than removing functions the prizm doesnt support very little work was needed to port it

Attatched is the binaries for version 1.0.0 I will be updating soon since the current version does not support anywhere near the whole keyboard like it should.
pSDL has also moved so that it is now called pSDL on my github instead of still being called nSDL

EDIT:Touched up the entire post to be more concise and orderly

540
Math and Science / Re: Matrices/Complex Numbers
« on: June 15, 2012, 12:23:47 am »
I'm not advanced enough in math to tell you much more about complexes then the conjugate though from the conjugate transpose I'd guess its already planned/done

Pages: 1 ... 34 35 [36] 37 38 ... 184