- #1
Icebreaker
[tex]f(x)=\sqrt{2x}[/tex]
[tex]x(f)=\sqrt{2f}[/tex]
Does this express:
[tex]\sqrt{2\sqrt{2\sqrt{...}}}[/tex]
[tex]x(f)=\sqrt{2f}[/tex]
Does this express:
[tex]\sqrt{2\sqrt{2\sqrt{...}}}[/tex]
dextercioby said:It's not true.The value DOES matter
[tex] \sqrt{2\sqrt{2\sqrt{2\sqrt{...}}}}=2 [/tex]
[tex] \sqrt{3\sqrt{3\sqrt{3\sqrt{...}}}}=3 [/tex]
Generally
[tex] \sqrt{k\sqrt{k\sqrt{k\sqrt{...}}}}=k ,k\geq 0[/tex]
Daniel.
dextercioby said:Okay,got it.You defined a sequence of functions.I don't see the relevance of "x",though.
[tex] f_{n}\left(k\right)=:\substack{\underbrace{\sqrt{k\sqrt{k\sqrt{...\sqrt{k}}}}}\\ \mbox{n times}} [/tex]
I thought that was your function for k=2.
Daniel.
A function is a block of code that can be called and executed multiple times in a program. It can take in parameters and return a value or perform a specific task.
An expression is a combination of values, variables, operators, and function calls that evaluates to a single value. It can be a mathematical calculation, a string, or a boolean value.
Functions often use expressions within their code to perform specific tasks or to return a value. Expressions can also be used as arguments when calling a function.
The syntax for writing a function with an expression is:
function functionName(parameters) {
// code to be executed
return expression;
}
Yes, expressions can be used as standalone code. For example, a console.log(expression) statement will output the value of the expression to the console without the need for a function.