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

You are not logged in.

#101 2013-07-25 02:49:00

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

That is okay

By the way, It is going to be a couple of hours before I sleep. The time here is 20:18 PM

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#102 2013-07-25 02:49:57

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

Early night. I will begin preparing what I know about it.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#103 2013-07-25 03:01:05

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#104 2013-07-25 03:02:07

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

8:00 am and soon I will be going offline.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#105 2013-07-25 03:19:29

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

OK Have a good day

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#106 2013-07-25 03:20:48

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

Here is the difference in the two methods.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#107 2013-07-25 05:10:42

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

Impressive...

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#108 2013-07-25 16:04:42

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

Are you sure it starts with h/3?

Besides, how is the same thing as drawing curves?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#109 2013-07-25 16:05:03

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

Sorry, we were both posting at the same time and I could not edit fast enough.

The basic formula looks like this:

with

h = (b-a)/n

x_i = a + i*h

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#110 2013-07-26 00:43:16

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#111 2013-07-26 00:58:52

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

It's convergence is much faster than the trapezoidal rule.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#112 2013-07-26 01:18:09

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

So, should I program it?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#113 2013-07-26 01:19:00

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

If you like, then we will see if our answers compare.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#114 2013-07-26 01:36:33

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

``````def integrate(f, a, b, n):
h = float(b-a)/n
x = lambda i: (a + i*h)
s1 = 0
for j in xrange(1,(n/2)):
s1 += f(x(2*j))
s1 *= 2
s2 = 0
for j in xrange(1,(n/2)+1):
s2 += f(x(2*j - 1))
s2 *= 4
s = h/3*(f(x(0)) + f(x(n)) + s1 + s2)
return s``````

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#115 2013-07-26 01:42:32

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

Let's try it on your integral with n =30.

I got .12501848174018723 using an M and a procedural program.

What did you get?

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#116 2013-07-26 04:07:56

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

I am getting that too.

The sad part is that I did not get the feeling of making the curves. . It was sort of dry...

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#117 2013-07-26 04:10:49

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

I could make a drawing for you later that might help.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#118 2013-07-26 04:14:21

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

That I can do for myself with a lot more colors than you would use xD

Never mind, but the formula at post 109 is not looking like a curve or giving a feeling of it. Sadly, it works...

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#119 2013-07-26 04:20:19

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

You have a nice program that you can use later on to integrate functions that you will not be able to do by hand and there will ne lots of them.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#120 2013-07-26 04:24:25

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

Why will integration problems come to me in the reality?

Could you explain how you got that formula?

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#121 2013-07-26 04:26:27

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

Integration is the area under a curve. They come up in physics and probability a lot.

I copied it. It is in many books and also on Wikipedia.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#122 2013-07-26 04:29:22

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

hahaha

okay

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#123 2013-07-26 04:30:15

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

I figured you wanted a real formula and not a bobbym creation.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#124 2013-07-26 04:34:33

Agnishom
Real Member
From: Riemann Sphere
Registered: 2011-01-29
Posts: 24,829
Website

Re: An Integral and the Computer

Nope. I want something that gives me the geometric feeling of the area. It can be anything, a program or a formula or some philosophy.

'And fun? If maths is fun, then getting a tooth extraction is fun. A viral infection is fun. Rabies shots are fun.'
'God exists because Mathematics is consistent, and the devil exists because we cannot prove it'
I'm not crazy, my mother had me tested.

Offline

#125 2013-07-26 04:35:56

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: An Integral and the Computer

I looked at two geogebra programs but they were not very impressive.

Here is the best image I have so far.

In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline