Recent content by Martin_L
-
M
Maximizing Frequency Detection in Arduino Projects
You can simply count the frequency. For that, you must get a square wave signal from the transistor (either by an amplifier or comparator). Then you can count the pulse length of a single square pulse or count the number of pulses in a some time frame by using interrupts and timers, much like a...- Martin_L
- Post #4
- Forum: Programming and Computer Science
-
M
Minimal Programming Mathematics Software
Mathcad is probably what you are looking for. That said I personally don't like it.- Martin_L
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX
-
M
C/C++ Two Body problem with RK4 in C++
Being confused is normal. Knowing how to dissect the problems are the key. To be honest, I don't understand your code. k1[0] to k1[3] should give the derivative of coordinates (velocity) times the stepsize, but you have second derivative instead (the acceleration). Same goes for k1[4] to...- Martin_L
- Post #14
- Forum: Programming and Computer Science
-
M
C/C++ Two Body problem with RK4 in C++
You have lots of typos and some more principal problems. Always start from the top of your compiler error output. Correct simple typos (commas, semicolons, etc.) Exponentiation is different in c++, you need to import pow() function or overload ^ as such beforehand.- Martin_L
- Post #6
- Forum: Programming and Computer Science
-
M
Programs Physics vs Technical Physics (Bachelor's degree)
Tere, Kuna ma foorumi reegleid ei tea, siis igaks juhuks postitan inglise keeles Translation:"Since I'm not familiar with forum rules, this post will be in English. Both are good. I believe that you can get as good physics education in TTÜ, as you would in UT. The difference actually...- Martin_L
- Post #4
- Forum: STEM Academic Advising
-
M
MATLAB Creating m by m matrix in matlab
See the repmat() function. For your purpose its repmat(z, size(z)(2), 1)- Martin_L
- Post #3
- Forum: MATLAB, Maple, Mathematica, LaTeX