this function
Q: Plot the function f (t) (x+5)2 for -3 <x< 5. 4+3x2
A: x=-3:0.01:5;z=power((x+5),2);e=4+power(3*x,2);y=z./edisp(y);plot(x,y);xlabel('Variable…
Q: function which takes a barameter cnd Hetwm 1'. write a CH integer I as - int cube ( int x) i
A: THE CUBE OF INTEGER IS X*X*X #include <iostream>using namespace std;//cube funtion returns…
Q: Write a function int solution(int N, int M, char CH) that accepts two integers (N and M) and one…
A: According to the Question below the Solution: Programming language is not mention so i am using…
Q: is the alternate of sizeof(); function.
A: ____________ is the alternate of sizeof(); function. a. count(); b. strtolower; c. isset(); d.…
Q: Create a function that plot y based on different values for the variable a. The x variable can be in…
A: 1. create function called condition plot with parameter a 1. create array of 0 to 2π with step…
Q: Q2\ Write program using function that passing parameter by reference to find perimeter * circle C++
A: Provided the program using function that passes parameter by reference to find the perimeter of…
Q: What is the reduced form of the function F = X(X+Y)+X(X+Y) а) Y b) X с) 0 d) 1
A: As requested no explanation is provided. The answer is given below
Q: 3. Write a program to compute the below functions depending on your entry from 1 to 3: 1. x(t) =…
A: Approach :- use if else Statement and do according to those input values and at last print the…
Q: Question 1: Generate and plot the given function y(t)= sin(500/t) for 1 <= t <= 20 Don't forget to…
A: Note: Answering the first question as per the guidelines. Input : Generating a set of values of t…
Q: Explain the following function • hypot( ) • pow( ) abs( )
A: Hypot() function: Hypot is a mathematical function defined to calculate the length of the hypotenuse…
Q: Given the function f defined as: f: R [1, + f(x) = 4x²+4x+1 Select the correct statement: O None of…
A: The solution for the above gine question is given below:
Q: function
A: Given :- In the above given question, a function along with the range and interval is mention in the…
Q: Select the function that is ?theta(nlogn) . a. 5n + 17logn b. 6nlogn + n^1.1 + 2 c. 23nloglogn +…
A:
Q: Write a user-defined function that determines if a number is a prime number. Name the function…
A:
Q: er the following functions by
A: Solution - In the given question, we have to arrange the given functions according to their order of…
Q: Write a function power(x) that takes in a value x (you may assume x is greater than 1) and finds the…
A: Here I have created a function named power(). In this function, I have declared variable y with the…
Q: # Modify and use your pseudocode for "Find the average score" from # Day 2 homework to create a…
A: You didn't mentioned the language therefore I have done it in python, java and C++
Q: Create a function that takes numbers b, m, and nas arguments and returns the definite integral of…
A: Since no programming language is mentioned, I am using Matlab. Algorithm: Start Define a method…
Q: 23 - 12x2 + 38x - 17 a2 – 5x + 3 + x - 7 x - 7
A: Solution : Code #include<stdio.h> void divide(int polynomial[100],int divisor[100],int n,…
Q: Create a function that takes numbers b, m, and nas arguments and returns the definite integral of…
A: In this problem, we need to design the code in the java Script programming language. Input -…
Q: eed to complete code add function and all. Should be correct. Slove all
A: I have answered below one-by-one:
Q: Bc) (t) Write a user defined MTLAB function for the following math function z(x, y) = e cos x+ sin…
A: Given function is z(x, y) = e ^ y * cos x + sin(x ^ 2 - y) Here is the x, y are the values.
Q: factorial(n) = n. (n-1) (n-2) .. 1. Complete the following function such that it returns the…
A: Factorial of number:It is the product of numbers from given number to 1.
Q: ode in specific functions!.
A: Approach: Declare a string variable and read input the name and store it in the variable. Then…
Q: Consider the function below and find the value that is printed when the function called is Omx (7,…
A:
Q: X Q. The strcpy functions arguments are none.
A: Q1) The correct answer of the questions is option("c")" Two pointers" EXPLANATIONThe two-pointer…
Q: 3. Write a program to compute the below functions depending on your entry from 1 to 3: 1. x(t) =…
A: According to information given:- we have to follow the instruction to compute the following…
Q: Write a code to determine whether the function f(x) = x.x is one-to-one where x defines as a set of…
A: a code to determine whether the function f(x) = x.x is one-to-one where x defines as a set of…
Q: Find the maximum value of the function 2x²+3x+20 where parameter x varies between 10 to 25…
A: The maximum value of function 2x2+3x+20 is 1345.
Q: Write a C function that accepts the values of the wo sides b, c, and alpha(is the angle (in radian)…
A: /******************************************************************************…
Q: Bc) (t) Write a user defined MTLAB function for the following math function z(x, y) = e cos x + sin…
A: Input : Range of x Range of y Output : 3-D plot of z(x,y) on the basis of the given equation.
Q: Using the function definition given below, find the value returned by the function call func(95,…
A: Given: To find the value returned by the given javascript function.
Q: Using C language in programming how to work this functions? 1. if n = 3 then the result should…
A: The answer is
Q: 3. Write a program to compute the below functions depending on your entry from 1 to 3: 1. x(t) =…
A: We can use <cmath> library of C++ to use trigonometric functions. We can use sin(t) ,tan(t),…
Q: Complete this using function.
A: Program Explanation: Define a class for clock Declare the instance variables, parameterized and…
Q: Write an R function called fibo(k) to obtain the Fibonacci numbers less than its argument k.…
A: The complete code is given below with the output.
Q: c++ Write a function that calls itself recrusively to find Greatest Common Divisor (GCD) of two…
A: Greatest Common Divisor (GCD) The Greatest Common Divisor (GCD) of two numbers is the largest…
Q: Create a function which counts how many lone 1's appear in a given number. Lone means the number…
A: Algorithm - Take input from user. Now use the below logic - for (let i =0;i< arr.length;i++){…
Q: Given the following matrix named matrix_1, which of the following function calls is correct and runs…
A: Required: Given the following matrix named matrix_1, which of the following function calls is…
Q: Prompt: When someone calls you on the phone, he or she looks up your number in a phone book (a…
A: In the current situation we have 2 major steps: Lookup for the name (corresponding to number) Call…
Q: 8. The function, round(9/4) is equal to
A: Q: Value of rounded 9/4;
Q: tialize:
A: public class Demo { public static void display(int n) { int count=0; while(n>0) { n=n/2;…
Q: Define Functions fill and fill_n.
A: The fill function allocates the value to all the elements in the range (begin, end). For example:…
Q: write all functions f: {1,2} -> {a,b,c,d} (in two line notation) how many functions are there how…
A:
Q: The cmath function log10() is an example of user-defined functions. O True OFalse
A: The cmath function log10() is an example of user defined functions True or False?
Q: Writing a function that returns for an integer A its symmetrical: That is to say, if A = 3524 then…
A:
Q: Write C++ function that accept two integer. The function should returns the Cube of any one of the…
A: if-else statements are used to solve this problem.
what values of t is it reasonable to use this function
Step by step
Solved in 2 steps
- HAHAAAAAAHN HNM1000 OHNM 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 27 28 30 31 32 section . data .section .text .globl _start start: pushq $4 pushq $3 call function-A addq $16, $rsp movg %rax, %rbx movq $1, rax int $0x80 .type function-A, @function function-A: pushq rbp movq rsp, rbp. subq $8, rsp mova 16 (%rbp), rbx movg 24 (rbp), rcx movg %rbx, -8(%rbp) label-A: #variable y #variable z cmpq $1, $rcx je label-B movq -8 (&rbp), rax imulg %rbx, srax movq rax, -8 (%rbp) decq rcx jmp label-A label-B: movq -8 (Srbp), rax movq rbp, rsp popq &rbp ret(Statics) A beam’s second moment of inertia, also known as its area moment of inertia, is used to determine its resistance to bending and deflection. For a rectangular beam (see Figure 6.6), the second moment of inertia is given by this formula: Ibh3/12 I is the second moment of inertia (m4). b is the base (m). h is the height (m). a. Using this formula, write a function called beamMoment() that accepts two double- precision numbers as parameters (one for the base and one for the height), calculates the corresponding second moment of inertia, and displays the result. b. Include the function written in Exercise 4a in a working program. Make sure your function is called from main(). Test the function by passing various data to it.(Statics) An annulus is a cylindrical rod with a hollow center, as shown in Figure 6.7. Its second moment of inertia is given by this formula: I4(r24r14) I is the second moment of inertia (m4). r2 is the outer radius (m). r1 is the inner radius (m). a. Using this formula, write a function called annulusMoment ( ) that accepts two double-precision numbers as parameters (one for the outer radius and one for the inner radius), calculates the corresponding second moment of inertia, and displays the result. b. Include the function written in Exercise 5a in a working program. Make sure your function is called from main(). Test the function by passing various data to it.
- (Numerical) Heron’s formula for the area, A, of a triangle with sides of length a, b, and c is A=s(sa)(sb)(sc) where s=(a+b+c)2 Write, test, and execute a function that accepts the values of a, b, and c as parameters from a calling function, and then calculates the values of sand[s(sa)(sb)(sc)]. If this quantity is positive, the function calculates A. If the quantity is negative, a, b, and c do not form a triangle, and the function should set A=1. The value of A should be returned by the function.Given the following function definitionSimplify the following functions:
- Q2} Write a user-define function that add or subtracts two polynomials of any order. Use the function to add and subtract the following f₁(x)=x5-7x4+11x³-4x²-5x-2 and f₂(x)=9x²-10x+6 polynomials:F(x.y,z)=x'y'z+x'yz+xy'z'+xy'z can you simplify this and draw the diagram of the simplified functionBased on the following function, what is the value of z(6,8)?