New years challenge!

This is a discussion on New years challenge! within the Contests Board forums, part of the Community Boards category; No I mean it doesnt play a tune Im assuming you have to type the right notes in, but I ...

  1. #31
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    No I mean it doesnt play a tune Im assuming you have to type the right notes in, but I typed the wrong ones in.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  2. #32
    Registered User whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    7,714
    Well, wouldn't that be an error on your part?

  3. #33
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    @abachler: Again, my example? Should just play, over the PC speaker. No input from you is needed, it just plays. Exits when done. Data is included in the assembly source for the song.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  4. #34
    Malum in se abachler's Avatar
    Join Date
    Apr 2007
    Posts
    3,189
    unfortunately ...

    Code:
    music_data:
     .long 500
     .long 440
     .long 1000
     .long 523
     .long 500
     .long 587
     .long 750
     .long 659
    
    etc....
    is a table of values.
    Until you can build a working general purpose reprogrammable computer out of basic components from radio shack, you are not fit to call yourself a programmer in my presence. This is cwhizard, signing off.

  5. #35
    Dr Dipshi++ mike_g's Avatar
    Join Date
    Oct 2006
    Location
    On me hyperplane
    Posts
    1,218
    Yeah, that was noticed a while back. I don't see how this can be done using an equation instead of a set of data. Maybe you would like to show us all, or is this just another impossible challenge?

  6. #36
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,185
    Technically, you can build a polynomial through any table of values (aka, polynomial interpolation; also see Newton divided differences). Cactus' 146 values (if I counted correctly) would be f(1), f(2), ..., f(146) where f is a 145th degree polynomial. I don't know or care enough about assembly or this problem to think about writing something to do that, and the argument for allowing 146 random polynomial coefficients but not 146 random actual numbers seems slight, so maybe this isn't what Abachler is going for.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Delete Files Older than 2 years
    By Dragoon_42 in forum C++ Programming
    Replies: 10
    Last Post: 05-17-2007, 04:13 PM
  2. Converting seconds to years, months etc...
    By ^xor in forum C Programming
    Replies: 7
    Last Post: 08-06-2005, 11:30 PM
  3. Where will programming be in 30 years ?
    By mrpickle in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 01-08-2004, 04:42 AM
  4. Requesting a challenge
    By RealityFusion in forum C++ Programming
    Replies: 8
    Last Post: 08-18-2003, 08:24 PM
  5. Video Games Industry. 5 years left.
    By Cheeze-It in forum A Brief History of Cprogramming.com
    Replies: 26
    Last Post: 12-10-2002, 09:52 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21