We are given the function \( f(x) = \frac{e^x - e^{-x}}{2} \), which is the definition of the hyperbolic sine function, \( \sinh(x) \), i.e., \[ f(x) = \sinh(x). \] The \( k^{\text{th}} \) derivative of \( f(x) = \sinh(x) \) is: \[ f^{(k)}(x) = \frac{d^k}{dx^k} \sinh(x). \] We know that the derivatives of \( \sinh(x) \) follow a periodic pattern:
\( f'(x) = \cosh(x) \)
\( f''(x) = \sinh(x) \)
\( f^{(3)}(x) = \cosh(x) \)
\( f^{(4)}(x) = \sinh(x) \), and so on. This pattern alternates between \( \sinh(x) \) and \( \cosh(x) \) for successive derivatives.
Specifically:
For even derivatives, \( f^{(2n)}(x) = \sinh(x) \)
For odd derivatives, \( f^{(2n+1)}(x) = \cosh(x) \)
Since \( f^{(10)}(x) \) is an even derivative, it will be equal to \( \sinh(x) \). Evaluating this at \( x = 0 \): \[ f^{(10)}(0) = \sinh(0) = 0. \] Thus, the value of \( f^{(10)}(0) \) is 0.
The directional derivative of the function \( f \) given below at the point \( (1, 0) \) in the direction of \( \frac{1}{2} (\hat{i} + \sqrt{3} \hat{j}) \) is (rounded off to 1 decimal place). \[ f(x, y) = x^2 + xy^2 \]
If \( C \) is the unit circle in the complex plane with its center at the origin, then the value of \( n \) in the equation given below is (rounded off to 1 decimal place). \[ \int_C \frac{z^3}{(z^2 + 4)(z^2 - 4)} \, dz = 2 \pi i n \]
Consider a directed graph \( G = (V,E) \), where \( V = \{0,1,2,\dots,100\} \) and
\[ E = \{(i,j) : 0 < j - i \leq 2, \text{ for all } i,j \in V \}. \] Suppose the adjacency list of each vertex is in decreasing order of vertex number, and depth-first search (DFS) is performed at vertex 0. The number of vertices that will be discovered after vertex 50 is:
Create empty stack S Set x = 0, flag = 0, sum = 0 Push x onto S while (S is not empty){ if (flag equals 0){ Set x = x + 1 Push x onto S } if (x equals 8): Set flag = 1 if (flag equals 1){ x = Pop(S) if (x is odd): Pop(S) Set sum = sum + x } } Output sumThe value of \( sum \) output by a program executing the above pseudocode is:
def f(a, b): if (a == 0): return b if (a % 2 == 1): return 2 * f((a - 1) / 2, b) return b + f(a - 1, b) print(f(15, 10))The value printed by the code snippet is 160 (Answer in integer).
Consider the following tables, Loan and Borrower, of a bank.
Query: \[ \pi_{\text{branch\_name}, \text{customer\_name}} (\text{Loan} \bowtie \text{Borrower}) \div \pi_{\text{branch\_name}}(\text{Loan}) \] where \( \bowtie \) denotes natural join. The number of tuples returned by the above relational algebra query is 1 (Answer in integer).