Taking the simple pendulum model as an example, the gray box identification is carried out.
1. Simple pendulum model
Figure 1 tangent force diagram of simple pendulum
The tangent force diagram of a simple pendulum is shown in Figure 1, and the picture comes from the network.
The equation of motion in tangent direction can be simply writte ...
Added by aiikcmo on Mon, 07 Mar 2022 08:14:27 +0200
1.1 TSP introduction
"Traveling salesman problem" (TSP) can be simply described as: a seller starts from one of the n cities, does not repeatedly complete the other n-1 cities and returns to the original starting point, and finds the shortest path among all possible paths.
The route of a traveler can be regarded as a ...
Added by saeed42 on Sat, 05 Mar 2022 07:31:48 +0200
Template meta programming example - how to design a general geometry Library
Suppose you need to use a c + + program to calculate the distance between two points You might do this:
First define a struct:
double x, y;
Then define a function containing the calculation algorithm:
double distance(myp ...
Added by Skaara on Sun, 27 Feb 2022 06:25:57 +0200
Part 27 shift inversion iteration to find the nearest eigenvalue and eigenvector
Shift inverse iteration
An eigenvalue method to realize vector iterative convergence more directly than the "maximum" eigenvalue method is Shift vector iteration method Rewrite to the following form Where p is a scalar "shift" value, [I] is t ...
Added by ScubaDvr2 on Fri, 18 Feb 2022 06:24:55 +0200
The transformation from wgs84 coordinate system to J2000 coordinate system mainly involves the mutual transformation of coordinates. Generally, the given WGS coordinates are t and BLH at the given time. The specific conversion is as follows
step1 WGS 84 converts to the protocol earth coordinate system.
function XYZ_m = wgs842ECEF(BLH_deg_m)
Added by R0bb0b on Thu, 10 Feb 2022 12:20:53 +0200
First give two algorithm questions for the interview.
One number has an odd number and the other number has an even number. It is required to find this number, and the time complexity is O(n) and the space complexity is O(1)The two kinds of numbers appear odd times and the other numbers appear even times. It is required to find this number, an ...
Added by apollyon on Wed, 09 Feb 2022 14:39:42 +0200
Lesson 3 matrix
1, Knowledge points
1. Total assets of richest customers
2. Special position in binary matrix
3. Flip the image
4. Rotate the image
5. Transpose matrix
6. Convert one-dimensional array into two-dimensional array
7. Judge whether the matrix is consistent after rotation
8. Two dimensional network migr ...
Added by Dustin013 on Sun, 06 Feb 2022 08:54:09 +0200
1,47. Full arrangement II It's not bad. The idea is generally right. It's just a little debugging - when size=0, you can't enter the for loop, so you need to judge when size=1, and then directly append (path), and then return
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def dsf(size,nu ...
Added by nrg_alpha on Sun, 06 Feb 2022 03:11:03 +0200