You are on page 1of 2

Department of Computer Science

Calculus and Analytical geometry


Semester (Spring 2023)

Assignment N0. 01
Submission Due Date: 29 March, 23
Marks 05

Instructions: Discuss amongst yourselves, and if you still can’t do it, you can ask me via email or
in person. Late submissions are not accepted.

[CLO-1, PLO-1]
In the given piece of code, identify is it a function or not. also define its domain and range
a)
def add_numbers(x, y) :
sum = x + y
return sum
b)
def likes_mathematics(name):
if name==”Alisher”:
likes_mathematics = “yes”
else:
likes_mathematics=”no”
return likes_mathematics

c)
def square_numbers(x):
return x**2
d)
def calculator(num1,num2):
answer = num1 + num2
answer = num1 / num2
answer = num1 - num2
answer = num1 * num2
return(answer)
Q. 2) Write the Domain and Range of the given activation functions (perceptron).
Perceptron
Perceptron was introduced by Frank Rosenblatt in 1957. He proposed a Perceptron learning rule based
on the original MCP neuron. A Perceptron is an algorithm for supervised learning of binary classifiers.
This algorithm enables neurons to learn and processes elements in the training set one at a time. Various
activation functions that can be used with Perceptron are shown below:

Q.3 Use the formal definition of limit to prove that the function is continuous at c
i) ƒ(x) = 𝑥 2 − 7, c = 1
1
ii) g(x) = (2x) , c = ¼

iii) h(x) = √2𝑥 − 3 , c = 2

Q.4) Find all possible oblique asymptotes


3
2𝑥 2 + 2𝑥 − 3
√𝑥 + 1

…………………………………………………..The End………..…………………………………..

You might also like