Jump to content

>
Viewing Profile

Azimuth

Member Since 23 Feb 2006
Offline Last Active Jan 15 2010 04:20 PM

Posts I've Made

In Topic: Can you solve it?

21 April 2008 - 11:53 PM

QUOTE(deathfisaro @ Apr 21 2008, 06:35 PM) <{POST_SNAPBACK}>
QUOTE(Azimuth @ Apr 21 2008, 02:53 PM) <{POST_SNAPBACK}>
Another set of solutions, 8 4 2 1.

CODE
d == ((3*c)/c)/c)


If you enjoy math puzzles then you should check out project euler


Code got busted there, should have casted to double or float, because mathematically 1 != ((3 * 2) / 2) / 2.

edit: tried bolding the code, didn't work =P


yeah, my bad, what a stupid mistake. This is what working in scripting languages does to a person, you start taking these small things for granted smile.gif

In Topic: Can you solve it?

21 April 2008 - 10:53 PM

QUOTE(MaHe @ Apr 21 2008, 09:18 AM) <{POST_SNAPBACK}>
This is not my homework, I made the equations ... Just modified one that I was able to solve and added a twist ...
Warning! Spoiler inside. 

And please, can a mod move this to another forum?


Another set of solutions, 8 4 2 1.

CODE
#include <stdio.h>

int
main (void)
{
     int a, b, c, d;

     for (a = 1; a <= 100; a++) {
          for (b = 1; b <= 100; b++) {
               for (c = 1; c <= 100; c++) {
                    for (d = 1; d <= 100; d++) {
                         if (a == (c*c)*d + c*c && b == c*d + a/b && c == a - b -c*d && d == ((3*c)/c)/c) {
                              printf ("%d %d %d %d\n", a, b, c, d);
                         }
                    }
               }
          }
     }
    
     return 0;
}


If you enjoy math puzzles then you should check out project euler

In Topic: vids

17 April 2008 - 06:11 PM

Flash on GNU/Linux is extremely buggy, you can thank Adobe(yay crappy closed source software!) for that, nothing you can really do about it. Gnash can't come soon enough.

In Topic: Installing Ubuntu on a Leopard Mac

04 April 2008 - 02:14 AM

QUOTE(juggernaut911 @ Apr 3 2008, 09:08 PM) <{POST_SNAPBACK}>
thnx


PS: ur name is familiar, do you hang around in the Ubuntu irc?


No, but I hang around freenode a lot so you might have seen me there.

In Topic: Installing Ubuntu on a Leopard Mac

04 April 2008 - 02:04 AM

You will have to edit the grub boot menu. Its located in /boot/grub/menu.lst
Add the following to it:

CODE
title Leopard
kernel (hd0,x)/boot/boot_v8


x is the partition leopard is installed on, most likely the first partition so x's value would be zero.

edit: thats using the pc_efi bootloader, you can also just add:

CODE
title Mac OS X: Leopard
root (hd0,x)
makeactive
savedefault
chainloader +1


to your /boot/grub/menu.lst and it should work fine

http://maketecheasier.com/how-to-dual-boot...1051/2008/02/28
https://wiki.ubuntu.com/MacBookPro/SantaRosa