R
R
Recardo_Recoly2017-03-24 23:14:35
Mathematics
Recardo_Recoly, 2017-03-24 23:14:35

How to get a number dependent on another pure?

There is a number that can take values ​​from 6 to 0 (maybe from 10 and from 40 but not less than 0).
The question is:
How to get interest from this number, let's say, or I don’t even know what it is.
If the number = 7 then the second number is 0 if the number = 0 then the second number is 1 and in the interval it should turn out not an integer there (the option with 6 and 0) the number = 3 then it should turn out 0.5
Help

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Sokolov, 2017-03-24
@Recardo_Recoly

If my crystal ball is not broken, then we are talking about a linear function, the graph of which is a straight line. And two points through which this line passes are known:
Suppose two points D1 with coordinates (x 1 , y 1 ) and D2 with coordinates (x 2 , y 2 ) are given. Then the equation of a straight line through them can be written as follows:
( x - x 1 ) / (x 2 - x 1 ) = ( y - y 1 ) / (y 2 - y 1 )
In this case, this is

(x – 0)/(6 – 0) = (y – 1)/(0 – 1)
x / 6 = (y – 1) / –1
–x / 6 = y – 1
y = 1 – x/6

If, for example, x=4, y = 1/3
More about the equation of a straight line through two given points on the plane. I drew the graph in the free GeoGebra program (including in Russian) - I highly recommend it for explaining / understanding mathematics and geometry.

R
Roman Kitaev, 2017-03-24
@deliro

Klitschko, are you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question