Posts by FourZeroFive • 1,231 points
61 posts
-
-1
votes1
answer237
viewsQ: Converting list to float array
I am working on an import of data, which are in format, as in the example: [-2.814285863362681, -2.814158589901394, -2.8123844084634873] [-2.874285863362681, -2.054158589901394, -2.6523844084634873]…
-
3
votes1
answer356
viewsA: What is the AS in Python for?
It’s like you’re giving something a nickname, for example except Exception as E, or, import serial as ser. 'Cause sometimes it’s a lot easier for you to call something than having to write its name…
pythonanswered FourZeroFive 1,231 -
0
votes1
answer71
viewsQ: Problems with Decode and Arduino
Hello, People I have the following code on Arduino if((digitalRead(4) != 1)||(digitalRead(5) != 1)) { Serial.print("\t"); Serial.print(analogRead(A0)); Serial.print(","); Serial.print(millis());…
-
3
votes4
answers162
viewsA: What is the difference between the operator IN and ==?
Basically the in is, for example, A contained in B, that is, there is an element C in B such that A = C is true. Already in the ==, is, for example, a comparison, that if A equals to B will be true.…
-
4
votes2
answers9906
viewsA: What is database redundancy?
Redundancy is when a data/information is stored more than once unnecessarily within a database, a gross example: employee name and person name, each in a different entity, this is redundancy,…
databaseanswered FourZeroFive 1,231 -
0
votes3
answers160
viewsA: What is the logic behind this function?
The Python for keeps a counter where it is in the list, if the list size is reduced, then it will mess up the counter, this code would work well if the list size did not change. The best way to do…
-
3
votes4
answers25657
viewsA: How to convert a char to an integer?
char c = '1'; int a = c - '0'; Don’t forget the subtraction
-
0
votes2
answers1230
viewsA: How do I return only the highest value within an array?
Friend, if(peso_animal[i] > mais_pesado[i]) notice that you are increasing the vector weight_more without having anything in the i position to compare, that is, I have the weight of the animal,…
-
0
votes1
answer146
viewsQ: Serial Communication and Array Division with Comma
Hello, Good Night, today I came up with another problem, reading data generated by sensors of the Arduino, I was able to print them and save them in an array, but to really get good, I need to break…
-
0
votes1
answer180
viewsQ: Slow matplotlib (Python) to plot a 2-D graph?
Lately I came up with the need to use Python for plotting graphics with more than 3600 coordinates, but I realized that time can be a problem, but I’m not sure if the code I did has any performance…
-
3
votes1
answer355
viewsQ: Parsing columns of numbers from a CSV file in C
Hello, Good Night I am with a file . CSV simple, containing only two columns, separated by comma and by the new line, as an example: 0.001,-9.623 0.098,2.540 1.000,-1.002 And I need to separate them…