I
I
Ilya2015-06-07 15:05:19
Mathematics
Ilya, 2015-06-07 15:05:19

How to differentiate the weight curve?

There are real-time weight data
On the X-axis - time (0.1 sec period)
On the Y-axis - weight (in kilograms)
It is necessary to differentiate this weight. More precisely, at each point, get the value of the angle a.
definition-of-differential.jpg
Here is everything you need . I can't count.
Let's say there are 10 points:
Time-Weight
1-10
2-15
3-95
4-380
5-390
6-370
7-208
8-62
9-12
10-3
How to calculate the angle a for each point?
On a global scale, the task looks like this: it is necessary, knowing the weight, to add records to DB:
loaded - 350 kg
unloaded - 220 kg
unloaded - 130 kg
Ideally, the records loaded and unloaded should change each other each time, i.e. there were no records in the DB "uploaded, uploaded" and "unloaded, uploaded"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitri Sinitsa, 2015-06-07
@pndr

I don’t know why you need to calculate the derivative, but if in a simple way:
there is an increment of the function: dy (weight), and an increment of the argument dx (time).
We take two points in pairs and find dy.
a (alpha) - is the tangent of the slope of the straight line (tangent), and if it is a tangent, then this is the ratio of the opposite side to the adjacent side, i.e. tan (a) = dy / dx, then a = arctan (dy / dx);
For example, for points 1->2:
tan(a) = (15-10) / 0.1 = 50;
=> a ~= arctan(50) ~= 88 deg.
For point 2 -> 3:
a = arctan((95-15)/0.1) ~= 89.92 deg
For point 3 -> 4:
a = arctan((380-95)/0.1) ~= 89.97 deg
and so on.
Only you have a time scale so small (compared to the measured weight) that the whole thing (the alpha angle) is actually always approximated by +- 90 degrees.
And I still do not understand why this corner is needed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question