Square roots of randomness.
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
Square roots of randomness.
Whats the Square Root of P?
How do you interpret it? There are different ways, different answers.
I think that it's D. Can you figure out why?
-JL and yes I'm bored.
How do you interpret it? There are different ways, different answers.
I think that it's D. Can you figure out why?
-JL and yes I'm bored.
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: Square roots of randomness.
I thought you had homework to do (at least you had 10 mins ago)piranha wrote:and yes I'm bored.
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
I do. But It's typing stuff up on the computer (like 15 pages )I thought you had homework to do (at least you had 10 mins ago)
But it's not due for a while so I don't have to do all of it at once.
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
NEH! OK, smart one, I came up with that at 3:00 AM the night before I posted it. My brain was dying.os64dev wrote:P 16th character in alphabet D = 4th.
Could you at least try to make something that takes longer then 10 seconds to find out.
And, if your so smart, figure this out:
The Rules: Place any operand you want in the underscores, only +, -, * and / take up a space. Any other operand doesn't.
You must make the 3 numbers equal 6. And you can't modify the six.
1__1__1 = 6
2__2__2 = 6
3__3__3 = 6
4__4__4 = 6
5__5__5 = 6
6__6__6 = 6
7__7__7 = 6
8__8__8 = 6
9__9__9 = 6
It took me 15 min. I got them all except the first (I first did it in 7th grade).
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
1__1__1 = 6
2 + 2 + 2 = 6
3 * 3 - 3 = 6
4 + 4 - sqrt(4) = 6
5 + 5 / 5 = 6
6 + 6 - 6 = 6
7 - 7 / 7 = 6
8__8__8 = 6
sqrt(9) * sqrt(9) - sqrt(9) = 6
Two to go...
2 + 2 + 2 = 6
3 * 3 - 3 = 6
4 + 4 - sqrt(4) = 6
5 + 5 / 5 = 6
6 + 6 - 6 = 6
7 - 7 / 7 = 6
8__8__8 = 6
sqrt(9) * sqrt(9) - sqrt(9) = 6
Two to go...
Last edited by Candy on Sun Oct 21, 2007 10:03 am, edited 1 time in total.
using the following java app:
I got :
Code: Select all
public class Main {
public static int NUM = 8;
public static final int OP_DIVIDE = 2;
public static final int OP_MINUS = 3;
public static final int OP_PLUS = 0;
public static final int OP_TIMES = 1;
public static double doOp(final double d, final int Op) {
switch (Op) {
case OP_PLUS:
return d + NUM;
case OP_DIVIDE:
return d / NUM;
case OP_MINUS:
return d - NUM;
case OP_TIMES:
return d * NUM;
default:
return 0;
}
}
public static String getOp(final int Op) {
switch (Op) {
case OP_PLUS:
return "+";
case OP_DIVIDE:
return "/";
case OP_MINUS:
return "-";
case OP_TIMES:
return "*";
default:
return " ";
}
}
public static void main(final String[] args) {
for (int i = 1; i < 10; i++)
solve(i);
}
public static void solve(final int Num) {
double temp = 0;
NUM = Num;
for (int x = 0; x < 4; x++)
for (int y = 0; y < 4; y++) {
temp = doOp(0, OP_PLUS);
temp = doOp(temp, x);
temp = doOp(temp, y);
if (temp == 6)
System.out.println(NUM + getOp(y) + NUM + getOp(x) + NUM + "="
+ temp);
}
}
}
Code: Select all
2+2+2=6.0
2+2*2=6.0
3-3*3=6.0
5+5/5=6.0
6-6+6=6.0
6/6*6=6.0
6*6/6=6.0
6+6-6=6.0
Microsoft: "let everyone run after us. We'll just INNOV~1"
- piranha
- Member
- Posts: 1391
- Joined: Thu Dec 21, 2006 7:42 pm
- Location: Unknown. Momentum is pretty certain, however.
- Contact:
I don't know about logs, but I came up with:
cbrt(8)+cbrt(8)+cbrt(8) = 6
and yes, it's (1+1+1)! = 6.
Well done, B.E.
This was shown to me by my uncle in Germany. And I didn't get the first one without help, because I was in 7th grade at the time and didn't know about the ! operator.
-JL
cbrt(8)+cbrt(8)+cbrt(8) = 6
and yes, it's (1+1+1)! = 6.
Well done, B.E.
This was shown to me by my uncle in Germany. And I didn't get the first one without help, because I was in 7th grade at the time and didn't know about the ! operator.
-JL
SeaOS: Adding VT-x, networking, and ARM support
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io
dbittman on IRC, @danielbittman on twitter
https://dbittman.github.io