Math Is Fun Forum

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

You are not logged in.

#201 2014-12-13 04:00:57

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

Yup.


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#202 2014-12-13 04:05:25

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

Re: Teach David

Do you know the math stuff about a function?


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

#203 2014-12-13 04:12:15

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

nope


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#204 2014-12-13 04:13:55

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

Re: Teach David

Functions are small code snippets or things that you want to use several times. They take an input and give an output


'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

#205 2014-12-13 04:15:24

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

Re: Teach David

Alright, we will cover it as we go.

A function definition in m ids written like this.

f[n_]:=n^2


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

#206 2014-12-13 04:16:26

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

k


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#207 2014-12-13 04:16:46

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

Re: Teach David

Id in english is written as is


'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

#208 2014-12-13 04:18:02

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

Re: Teach David

I corrected it.

In f[n_]:=n^2, f is called the head and n is the argument.


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

#209 2014-12-13 04:22:19

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

okay


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#210 2014-12-13 04:24:54

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

Re: Teach David

F and n are arbitrary and we can choose other ones. The stuff on the right is the function definition, in In f[n_]:=n^2 that would be n^2.


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

#211 2014-12-13 04:26:18

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

Ugh. You have any idea why m is constantly not responding?

Oh I see.


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#212 2014-12-13 04:28:13

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

Re: Teach David

Got it working.

Enter into a cell  f[n_]:=n^2


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

#213 2014-12-13 04:29:30

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

Okay, it said construct pure function.


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#214 2014-12-13 04:31:21

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

Re: Teach David

Okay, now try this f[5]


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

#215 2014-12-13 04:32:01

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

It's 25


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#216 2014-12-13 04:33:11

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

Re: Teach David

What happened was whatever you put in was squared 5 -> 5^2 = 25.


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

#217 2014-12-13 04:34:05

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

I see


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#218 2014-12-13 04:36:33

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

Re: Teach David

Try f[10], f[5+2] and f[n].


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

#219 2014-12-13 04:37:14

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

I did


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#220 2014-12-13 04:37:44

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

Re: Teach David

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

#221 2014-12-13 04:40:12

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

100, 49, n^2


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#222 2014-12-13 04:41:01

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

Re: Teach David

How about f[(x+1)]?


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

#223 2014-12-13 04:42:57

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

(1+x)^2


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

#224 2014-12-13 04:44:45

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

Re: Teach David

That is correct. We should examine the difference between n_ and n. Define this function: g[n]:=n^2


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

#225 2014-12-13 04:47:23

David
Member
From: Bumpkinland
Registered: 2014-04-23
Posts: 3,164

Re: Teach David

i did


His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.

Offline

Board footer

Powered by FluxBB