Discussion about math, puzzles, games and fun. Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ π -¹ ² ³ °

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

I am currently studying a-level maths and have a few folders and books to learn from as well as a tutor. Once I have learnt a module I like to revise it often but I am finding now that I simply remember the answer to all the questions I have done previously and am not exercising the skill of actually working the answers out. Do you know of any resources with many many different questions or maybe some computer program that can generate questions on a given module?

Aloha Nui means Goodbye.

Offline

**John E. Franklin****Member**- Registered: 2005-08-29
- Posts: 3,585

Found this but don't know how good it is:

http://www.coursework.info/65/index.html

**igloo** **myrtilles** **fourmis**

Offline

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

Well it's definately some new questions

I'm going to write some apps that will generate questions of choise, would mathsisfun be interested in having these apps?

Aloha Nui means Goodbye.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

Yes, indeed - such a thing would help people enormously.

More details?

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

I've made a couple of console based apps in C but they are quite limited so far (and the code is very very messy!). Once I can factorise properly in my head I'll start work on one that can produce quadratic and cubic polynomials.

I'm a bit stuck at the moment on the following for now:

factorise 3(x-2)^2 + x - 6

(3x - 6)^2 + x - 6

(3x - 6)(3x - 6) + x - 6

9x^2 - 36x + 36 + x - 6

9x^2 - 35x + 30

I've tried trial and error to put

-1, -30

-2, -15

-3, -10

-5, -6

into both

(3x )(3x )

(9x )(x )

But cannot for the life of me work it out!

Aloha Nui means Goodbye.

Offline

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

Here are some of those old console apps I made the can **solve** some questions, I found them in my archives.

Be Warned! The code is very messy.

http://www.philoswald.f2s.com/maths1.rar

You'll need to run them from a command line rather than double clicking on the executable or you wont get to read the last line.

Aloha Nui means Goodbye.

Offline

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

3(x-2)^2 + x - 6

3(x-2)(x-2) + x - 6

(3x-6)(x-2) + x - 6

3x^2 - 12x + 12 + x - 6

3x^2 - 11x + 6

(3x - 2)(x - 3)

P.S. My algebra drags.

Aloha Nui means Goodbye.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

Works for me.

I downloaded and had a brief look at your code. It is a start! A lot more to do I think

But the trouble with "C" is that it isn't good for websites. Super-excellent for speed, though. I have done things in C that run 100 times faster than javascript. Seriously! A fraction of a second compared to nearly a minute. A minute is a long time to wait, and you wonder how javascript could be so innefficient.

Anyway, C can be translated to javascript, or actionscript for flash, or even php, reasonably easy, so long as you steer clear of things like pointers and objects. And then hopefully speed is not an issue.

So, when you come up with some code you would like to test on the website, post it here and I will have a go.

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

Try writing javascript that generates a list of prime numbers:)

And for the C - isn't there something as CScript, which is close to C?

Anyway, javascript is very close to C.

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

Interesting programs Ricky

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**RickyOswaldIOW****Member**- Registered: 2005-11-18
- Posts: 212

Those programs are about a year old now which is when I started learning maths. I'd probably write the apps in visual basic 6 (not .net). It's a very easy language to make GUIs in! I've look through that code and it has some very interesting statements such as

`if (n*i)/i = n`

What a pointless statement! God knows why it's there :S

P.S. liuv, it is I who added you on MSN!

*Last edited by rickyoswaldiow (2006-05-19 02:43:42)*

Aloha Nui means Goodbye.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

I think = may mean == because otherwise (n*i)/i must be bool.

(but if n and i are from some class with predefined operator*, operator/ and operator= , it may be something)

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

I need a program that tells me if a string is a function with syntax:

<function>::=<name>(<set_of_arguments>);

<name>::=<letter>|<letter><name>;

<letter>::=a|b|c|d|...|z;

<set_of_arguments>::=<argument>|<set_of_arguments><argument>;

<argument>::=<number>|<function>;

<number>::=<digit>|<number><digit>;

<digit>::=0|1|2|3|4|5|6|7|8|9;

Can someone help me?

(I accept C code)

IPBLE: Increasing Performance By Lowering Expectations.

Offline

**MathsIsFun****Administrator**- Registered: 2005-01-21
- Posts: 7,559

So, you give the program a string like "dothis(bill)" and it returns YES, but "dothis=bill" would return NO.

I think a "regular expression" would handle this - regular expressions are included in php, java, and .net

"The physicists defer only to mathematicians, and the mathematicians defer only to God ..." - Leon M. Lederman

Offline

**krassi_holmz****Real Member**- Registered: 2005-12-02
- Posts: 1,908

not, not.

The program must give 5 when written (2-3)*5+10.

I know something about regular expressions, but not much. That's why I prefer, for example some functions:

double number(char* c)

double name(char*c)

ect.

IPBLE: Increasing Performance By Lowering Expectations.

Offline

Pages: **1**