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 - ZippyDee
Pages: 1 ... 29 30 [31] 32 33 ... 51
451
« on: April 28, 2011, 08:53:03 pm »
prefix (a.k.a Polish Notation): + 1 2 infix: 1 + 2 postfix (a.k.a Reverse Polish Notation): 1 2 + with infix you have to worry about order of operations, whereas with postfix and prefix you don't. While we're on the subject... http://xkcd.com/645/
452
« on: April 28, 2011, 08:45:31 pm »
public class converter {
private double weightLB; private double weightKG;
public converter() { } public void setkg(double kg) { weightKG = (double)kg/2.2; } public void setlb(double lb) { weightLB = (double)lb*2.2; } public double getlb(){ return weightLB; } public double getkg(){ return weightKG; } }
/*lbs / 2.2 = kilograms *kg x 2.2 = pounds */ Try that
453
« on: April 28, 2011, 08:42:52 pm »
For infix parsing, convert to postfix first. It makes your life SO much easier. But left-to-right parsing would be even easier than that, I suppose...
454
« on: April 28, 2011, 08:38:35 pm »
What about just sending the entire argument string to the OS to evaluate?
The OS does it by default, but it's too slow. I'm making this a faster one, since most people don't use Anova( or Sort( or other complex ones like that
Anova(? I don't even have that o.O
455
« on: April 28, 2011, 08:11:18 pm »
Centering text, right justifying text. If it's a number you need to know how far to place it out from the side.
456
« on: April 28, 2011, 08:10:12 pm »
Ah, well that would certainly do it! Damn this hard-to-distinguish font! Well, I'm glad it got figured out!
457
« on: April 28, 2011, 08:06:59 pm »
buttonPanel isn't a class. You defined it in your code
JPanel buttonPanel = new JPanel();
It's an instance of the JPanel class.
459
« on: April 28, 2011, 07:54:14 pm »
Well, the setText() one is that setText() only accepts one argument, and it has to be a String. I think you want that to say setText(" "+kg) and setText(" "+lb)
As for the buttonPanel one, I'm not sure yet...it looks like it should work just fine, but for some reason it's not.
460
« on: April 28, 2011, 07:49:05 pm »
BorderLayout.CENTER
461
« on: April 28, 2011, 04:28:40 pm »
supporting "real" multiple notes is what I really want in Axe.
Conceptually that's pretty simple. Say you have the equation for three notes, f(t) g(t) h(t). The amplitude at any given t would just be f(t)+g(t)+h(t). Sum them all up. But it's not quite as easy when it comes to actually writing that out so it runs fast enough to produce the correct sound output with a chip like the z80
462
« on: April 28, 2011, 04:25:10 pm »
I always had a question, but which language do u program android prgm with?
Android apps are all done with Java. They have a lot of documentation on their development website: http://developer.android.com
463
« on: April 28, 2011, 04:23:03 pm »
Technically, when you're hearing multiple notes it's really just a combination of the frequencies. But that's just simple physics of adding and subtracting waves.
464
« on: April 28, 2011, 04:20:45 pm »
This is great! I was thinking about making a guitar program at some point. I'll have to find a way to defy reality and play 6 notes at once though xD ?!. How can you make two sounds with axe ? If two notes are pressed, only the higher is played.
One way is to alternate back and forth between the two frequencies very quickly.
465
« on: April 28, 2011, 04:16:34 pm »
Yes, this is what it says on the FREE RAM row in the mem management menu I wasn't compiling for a shell I only noticed when I tried to run the program once I finally got it compiled and I got an ERR:MEMORY; the Ram was somewhere around 130. Also, it took me several tries to get it error free, and the source is only 396 bytes. Where the errors occurred kept changing as I fixed them.
Same thing for me. "ERR:MEMORY" and the ram went down to around 100-200.
Pages: 1 ... 29 30 [31] 32 33 ... 51
|