You should go with some node library for images, like >
js-imagediff
pixelmatch
node-opencv
Good starting point to explore more deeply about it >
https://stackoverflow.com/questions/4196453/simple-and-fast-method-to-compare-images-for-similarity
@phamtracanh said in Comparative math.:
Hi guys, I have a question looking forward to getting answered
I have a sequence of numbers from A0 = 0, A1 = 1, ... A100 = 100 .. And a variable X.
When X = 60, how do I know if X is less than A61, A62 ... A100?
Thank you very much.
Create a test script, from your description it is unclear what you need
@Fox said in Comparative math.:
@phamtracanh said in Comparative math.:
Hi guys, I have a question looking forward to getting answered
I have a sequence of numbers from A0 = 0, A1 = 1, ... A100 = 100 .. And a variable X.
When X = 60, how do I know if X is less than A61, A62 ... A100?
Thank you very much.Create a test script, from your description it is unclear what you need
I don't know what to do.
I will try to explain more clearly.
Input:
Number sequence 0,1,2,3 ... 100.
And a variable X.
Output:
@phamtracanh said in Comparative math.:
@Fox said in Comparative math.:
@phamtracanh said in Comparative math.:
Hi guys, I have a question looking forward to getting answered
I have a sequence of numbers from A0 = 0, A1 = 1, ... A100 = 100 .. And a variable X.
When X = 60, how do I know if X is less than A61, A62 ... A100?
Thank you very much.Create a test script, from your description it is unclear what you need
I don't know what to do.
I will try to explain more clearly.
Input:
Number sequence 0,1,2,3 ... 100.
And a variable X.
Output:
- If X <100: Log "100".
- If X <99: Log 100 and Log 99
- If X <98: Log 100, log 99 and log 88.
..........
When X comes out, I want to know for sure which integer it is smaller. I will then execute the Log action.
Thank you.
I still don't understand you. What initial problem are you trying to solve in this way?