Question
If x² - 2x + 1 = 0, then find the value of (x +
x⁻¹)².Solution
x² - 2x + 1 = 0
x² + 1 = 2x
By dividing both side by 'x' we get,
(x + 1/x) = 2
So, x = 1 [Since we know if (x + 1/x) = 2, then the value of 'x' is 1]
Now, (x + x⁻¹)² = (1 + 1)² = 2² = 4
Which command is used to search for a pattern in files?
OLAP is primarily used for:
Which character is used to denote a single-line comment in a shell script?
Which command is used to read user input from the keyboard and store it in a variable?
Which construct replaces a command with its output in a POSIX shell?
What is the exit status code of a successfully executed command in Linux shell?
What is the primary purpose of the "shebang" line `#!/bin/bash` at the beginning of a shell script?
Which symbol is used to comment a single line in shell scripts?
Which command is used to check the current working directory in Linux?
Which symbol is used for logical AND in shell scripting?