You are not logged in.
Yup.
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
nope
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
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
k
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
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
okay
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
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
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
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
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
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
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
I see
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
I did
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline
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
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
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
(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
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
i did
His dominion is an everlasting dominion, Which shall not pass away, And His kingdom the one Which shall not be destroyed.
Offline