To transfer google play balance, opinion rewards or gift cards to PayPal, Paytm, PhonePe, Google Pay or any UPI ID linked bank account , you can use QxCredit :Rewards Convertor app which is available on google play store: You will get back 80% of the google play balance. App link: https://play.google.com/store/apps/details?id=qxcoding.qx_credit_reboot Follow these steps to transfer your play balance to paypal or UPI: 1) download app from play store. 2) login with your google account and phone number. 3) choose a token amount which you want to convert/transfer. 4) Enter your payout details.(UPI ID or PayPal Email) 5) wait for an acknowledgement mail form qxcredit containing information about your purchased token. 6) you will receive the amount within 3 days. 7) if you face any issues you can raise a query on website: https://qx-credit.web.app/#/contact_support About app: Introducing QxCredit : Rewards Converter Convert /Transfer or Exchange your Google Play Balance and opini...
The above rule is applicable only when n=6k (multiple of 6 ) ,we just have to find the value of y corresponding to (value) of x ,given by y=f(x).
Now for implementation of this formula in the program ,we need to first find the value's of y corresponding to each x :
for that we have to convert the entered string by the user to a python expression for calculation of required values and then substituting in simpson's formula.
The conversion of string to python expression can be achieved by using lambda function:
ep=input("Expression ")
f = lambda x: eval(ep)
here, the input string is first stored in ep and then converted to python expression (function) using lambda.SOURCE CODE:
# SIMPSONS 1/3 -RULE
# SOURCE: QXCODING.COM / JATIN YADAV
if __name__ == '__main__':
ep=input("Expression ")
f = lambda x: eval(ep)
a, b = map(int, input("limits ").rstrip().split())
n = int(input("number of strips for accuracy "))
if (n % 2 != 0):
print("strips =2k")
exit(0)
h = (b - a) / n
sum = 0
for i in range(n + 1):
y = f(h*i)
print(y)
if i in [0, n]:
sum += y
elif i % 2 == 0:
sum += 2 * y
else:
sum += 4 * y
print("value=", (h / 3) * (sum))
if any doubts or queries please comment

Comments
Post a Comment