O
O
Ol lexit2020-07-28 00:05:29
Python
Ol lexit, 2020-07-28 00:05:29

What mathematical algorithm can be applied?

Hello, I'm taking a python course.
Help solve the problem.

I need to calculate the cost of a car, the task is:
"A new car costs = 10,000
a car with an age of 40 years = 0"

Which equation algorithm should I use?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pashenka, 2020-07-28
@like-a-boss

minusCostPerDay = 10000 / (365 * 40)
costAfter1Day = 10000 - minusCostPerDay
costAfter1Year = 10000 - 365 * minusCostPerDay
You can also factor in leap years for greater accuracy. What is the algorithm, I heze. This is the third grade of the general education school.

V
Vadim Shatalov, 2020-07-28
@netpastor

Linear regression is

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question