Search found 31 matches

by katkov
Sun Jan 11, 2009 5:10 am UTC
Forum: Coding
Topic: Project Euler
Replies: 411
Views: 159634

Re: Project Euler

Berengal wrote:From a very brief glimpse at your code, I'd suggest changing total to a long.

And that was the problem ok thanks
by katkov
Sun Jan 11, 2009 3:32 am UTC
Forum: Coding
Topic: Project Euler
Replies: 411
Views: 159634

Re: Project Euler

I tried to do a Sieve of Eratosthenes for Problem 10 and ended up with this public class Prob10 { public static void main(String args[]) { final int NUM=2000000; int list[]= new int[NUM+1]; for(int i=0;i<=NUM;i++) { list[i]=i; } list[1]=0; for(int j=2;j<=NUM;j++) { if (list[j] != 0) { for(int k=j*2;...
by katkov
Fri Dec 12, 2008 3:18 am UTC
Forum: The Help Desk
Topic: Installing game on USB for multiple computers
Replies: 5
Views: 924

Re: Installing game on USB for multiple computers

Infernalis wrote:btw, what's the problem with installing it on each computer?

I want to play it on my roommates desktop, and even though he doesn't mind me playing it on it, he doesn't want me too install it.
Plus I'd rather not have to transfer the save file each time.
by katkov
Thu Dec 11, 2008 10:51 pm UTC
Forum: The Help Desk
Topic: Installing game on USB for multiple computers
Replies: 5
Views: 924

Installing game on USB for multiple computers

I know I'm getting Fallout 3 for Christmas, however my laptop doesn't have the video card to handle it. I was wondering if it was possible to install it to a usb stick so that I can use it on both my parents computer, and on my roommates desk top. If not what would you recommend besides installing i...
by katkov
Mon Sep 29, 2008 1:42 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

Every single way I do it, either I end up at the same place I'm already at or I end up with it being always false, because if its true for all w than than that includes those that are equal to y or z. Is there someway to get the w \ne y and w \ne z into the \forall w statement, or do I have to defin...
by katkov
Mon Sep 29, 2008 2:47 am UTC
Forum: General
Topic: WTF happened to my friend Catherine?
Replies: 62
Views: 6966

Re: WTF happened to my friend Catherine?

No way to get her to eat it in her food?
by katkov
Mon Sep 29, 2008 1:02 am UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

Buttons wrote:Aren't you really trying to say that this is true for any w besides y and z?

I thought that was what i had managed to say
by katkov
Sun Sep 28, 2008 11:58 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

[imath]\exists x \exists y \exists z \exists w (((P(x,y)\land P(x,z)(y \ne z)) \land \lnot P(x,w) \land (w \ne y) \land (w \ne z))[/imath]

I think its right this time
by katkov
Sun Sep 28, 2008 11:22 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

Buttons wrote:Very close. Except, are you sure it's true for all x?

I'm sure its not, dont know what I was thinking.

[imath]\exists x \exists y \exists z ((P(x,y)P(x,z)(y \ne z)) \land \lnot(P(x, \lnot y) \land P(x , \lnot z)))[/imath]

I think this is right,
by katkov
Sun Sep 28, 2008 8:32 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

I think I'm close:[math]\forall x \exists y \exists z( P(x,y) \land P(x,z) \land (y\ne z))[/math]

However that leaves me stuck on the other one since if there is a unique y then z cant satisfy the Predicate without being equal to y
by katkov
Sun Sep 28, 2008 6:57 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Re: Help with Logic-Predicates

how would I rephrase it as a predicate in the form P(x,y)
by katkov
Sun Sep 28, 2008 4:42 pm UTC
Forum: Mathematics
Topic: Help with Logic-Predicates
Replies: 23
Views: 1773

Help with Logic-Predicates

The Question for one of my assignments:Let P(x, y) be the statement "x loves y", where the domain for both x and y is the set of all people in the world. Use quantifiers ALL OF, UNIQUE, and EXISTS to express each of the following statements I'm fine with most except there are two that I ha...
by katkov
Mon Sep 15, 2008 10:59 pm UTC
Forum: Mathematics
Topic: Solving a 3-dimensional Equation
Replies: 13
Views: 2963

Re: Solving a 3-dimensional Equation

K, I found the results from the game I mentioned, I only included the results from 2 out 4 extra continents, so if this still isn't enough I could double it x , y , z , .42(x+y)/z 10, 7, 10, 0.71 10, 4 ,10 ,0.59 10 ,6 ,8 ,0.84 10 ,7 ,12, 0.6 10 ,9 ,12 ,0.67 10 ,6 ,12 ,0.56 10 ,4 ,8 ,0.74 15 ,12, 12,...
by katkov
Mon Sep 15, 2008 8:26 pm UTC
Forum: Mathematics
Topic: find something about the number
Replies: 65
Views: 5346

Re: find something about the number

66- The 6th hexagonal number
by katkov
Mon Sep 15, 2008 8:00 pm UTC
Forum: Mathematics
Topic: find something about the number
Replies: 65
Views: 5346

Re: find something about the number

64-It is the lowest positive power of two that is adjacent to neither a Mersenne prime nor a Fermat prime.

EDIT Slightly more interesting 63- number of partially ordered sets with 5 elements
by katkov
Mon Sep 15, 2008 6:40 pm UTC
Forum: Mathematics
Topic: find something about the number
Replies: 65
Views: 5346

Re: find something about the number

62-According to Wikipedia there are 62 moons orbiting Jupiter, the first one of which was discovered in 362 by a Chinese astrologer





EDIT-typo
by katkov
Mon Sep 15, 2008 2:03 pm UTC
Forum: Mathematics
Topic: Solving a 3-dimensional Equation
Replies: 13
Views: 2963

Re: Solving a 3-dimensional Equation

If you want even more data points, I know that that Hasbro came out out with a risk PC game that included a lot of extra maps, all of which had more territories and continents than regular risk so if anyone with the game could provide those points I bet they would help a lot.
by katkov
Wed Aug 06, 2008 2:02 am UTC
Forum: The Help Desk
Topic: Did I cause this.
Replies: 4
Views: 1222

Did I cause this.

Not computer orientated but I'm currently working for a neighbor and I was trimming her hedges with an electric trimmer and a accidentally cut he wire while trimming. It was near the start of the extension cord an she uses the type of plug that you can take off and replace, so I repaired the thing t...
by katkov
Fri Jul 25, 2008 12:00 am UTC
Forum: Science
Topic: How to ship energy from Alpha Centauri
Replies: 39
Views: 3705

Re: How to ship energy from Alpha Centauri

There is in fact an equation which will tell you the amount of spread you will get do to diffraction. Spot diameter=1.22*wavelength*target distance/optics diameter Maybe I'm a complete physics noob but doesn't this mean that the smaller the optics diameter get the larger the spot diameter gets whic...
by katkov
Tue Jul 22, 2008 4:13 pm UTC
Forum: Science
Topic: How to ship energy from Alpha Centauri
Replies: 39
Views: 3705

How to ship energy from Alpha Centauri

Lets say that tomorrow scientists discover that we can get massive amounts of electricity from Alpha Centauri. The governments of earth have sent all the necessary equipment there. It is up to you to decide the most efficient way of getting energy from there to here (approx 4.37 light years) Assume ...
by katkov
Sun Apr 13, 2008 12:21 am UTC
Forum: Coding
Topic: Best C++ compiler for a beginner
Replies: 17
Views: 2393

Re: Best C++ compiler for a beginner

The thing is I got the code directly from a tutorial( http://www.cplusplus.com/doc/tutorial/program_structure.html ) so is it the tutorials fault? No, it just didn't explain how to run the program properly. It was probably assumed that you'd know. Just use the command prompt to run it and it should...
by katkov
Sat Apr 12, 2008 11:34 pm UTC
Forum: Coding
Topic: Best C++ compiler for a beginner
Replies: 17
Views: 2393

Re: Best C++ compiler for a beginner

The thing is I got the code directly from a tutorial(http://www.cplusplus.com/doc/tutorial/program_structure.html) so is it the tutorials fault?
by katkov
Sat Apr 12, 2008 10:50 pm UTC
Forum: The Help Desk
Topic: Help with Dev-C++
Replies: 1
Views: 952

Help with Dev-C++

I'm learning Java at school but decided to learn C++ in my spare time. I took Dev-C++ as my compiler. I was using the online tutorial here http://www.cplusplus.com/doc/tutorial/ but when I first entered the code the screen just flashed once. // my first program in C++ #include <iostream> using names...
by katkov
Sat Apr 12, 2008 9:13 pm UTC
Forum: Coding
Topic: Best C++ compiler for a beginner
Replies: 17
Views: 2393

Re: Best C++ compiler for a beginner

Filius Nullius wrote:I would start out using Dev-C++

I tried but when i put the code exactly in from the tutorial i was using my screen just flashed

#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
cout<<"Hello";
return 0;
}
by katkov
Sat Apr 12, 2008 8:42 pm UTC
Forum: Coding
Topic: Best C++ compiler for a beginner
Replies: 17
Views: 2393

Re: Best C++ compiler for a beginner

Yakk wrote:Is your goal a pretty GUI program quickly, or learning how to write a C++ program?


Write a C++ program
by katkov
Sat Apr 12, 2008 6:18 pm UTC
Forum: Coding
Topic: Best C++ compiler for a beginner
Replies: 17
Views: 2393

Best C++ compiler for a beginner

I am just learning how to use C++ from online tutorials and I was wondering what compiler I should start with, I use windows xp.
by katkov
Mon Mar 10, 2008 3:59 am UTC
Forum: Logic Puzzles
Topic: Eternity II
Replies: 14
Views: 8064

Re: Eternity II

One thing you could try is to get the program to run x amount of times, with x being the number of tries it can do in a period of reasonable period of time so it does not inconvieinence you too much(such as over night) and each time it gets the solution to "unsolvable", it records which pe...
by katkov
Wed Mar 05, 2008 7:36 pm UTC
Forum: Logic Puzzles
Topic: Getting your fair share
Replies: 49
Views: 10814

Re: Getting your fair share

Spoiler:
Person A cuts the pie into thirds, Player B and C then flip a coin, who ever calls it correctly gets to choose a peice then the other person and finally A.
by katkov
Sat Jan 05, 2008 1:09 am UTC
Forum: School
Topic: University-Co-Op or not to Co-Op
Replies: 16
Views: 4838

University-Co-Op or not to Co-Op

I was applying to university with computer science and was wondering whether Co-op is worth it or not. Pros/Cons?
by katkov
Thu Dec 20, 2007 2:48 pm UTC
Forum: School
Topic: Univeristy Choices for Computer Science
Replies: 25
Views: 6629

Re: Univeristy Choices for Computer Science

What are the average grades needed to get into: Brock, Queens, Carlwton, Waterloo
by katkov
Mon Dec 10, 2007 12:39 am UTC
Forum: Science
Topic: What did I do wrong
Replies: 2
Views: 1118

What did I do wrong

I was assigned to make an equation that would calculate velocity needed to start at one side of the circle and throw a ball and land at the other side of the circle. Assuming no air resistance and constant gravity. Here's what I got: Since: Time=Distance/Velocity Time=2*radius/Horizontal Velocity(si...

Go to advanced search