Calculate the value of mathematical expression x*(x+5)=2 where x=5 using lambda expression python programming
Answers
Answered by
3
Answer:
5x+25=2
x=25/5=5/2
Explanation:
5/2
Answered by
0
The final output of the mathematical expression x * (x + 5) = 2 where
x =5 using lambda expression is 25.
Lambda Expression -
- Lambda function is an anonymous function i.e., it has no name.
- Lambda keyword is used to define such kinds of function with no name called anonymous function.
- It can have only one expression or statement but can have any number of arguments.
- Syntax of lambda function
Lambda arguments: expression or statement
Given mathematical expression x*(x + 5) = 2
and given value of x = 5.
Writing a Lambda function for the above,
Lambda (x =5) : x * (x + 5) = 2
Here, the expression of lambda function is x * (x + 5) = 2
and the argument is x = 5
⇒ 5 * (5 + 5) = 2
⇒ 5 * (10) = 2
⇒ 50 = 2
⇒ 50/2
⇒ 25
The final output of the mathematical expression x * (x + 5) = 2 where
x =5 using lambda expression is 25.
#SPJ5
Similar questions