Categories

## read a matrix from a file in python

def main(): f=open(“fileread.txt”,”r”) for x in f: p=x.split(” “) print(p) main() I have written this code for reading a matrix from a file and write it into the console. But I got unexpected output. The output should be [‘5’, ‘6’, ‘9’, ‘7’] [‘1’, ‘7’, ‘9’, ‘6’] [‘4’, ‘5’, ‘6’, ‘3’] [’14’, ’25’, ‘9’, ‘6’] but […]

Categories

## AC3 TrueHD/7.1 Atmos Has No Sound

My previous 7.1 question went unsolved, so I tried to map the audio streams this time. I am now getting the 5.1 at least, but the AC3 TrueHD/7.1 Atmos channel is empty. I mapped the video and two audio channels I wanted and chose to copy each of them, then I brought up the results […]

Categories

## AC3 TrueHD/7.1 Atmos Has No Sound

My previous 7.1 question went unsolved, so I tried to map the audio streams this time. I am now getting the 5.1 at least, but the AC3 TrueHD/7.1 Atmos channel is empty. I mapped the video and two audio channels I wanted and chose to copy each of them, then I brought up the results […]

Categories

## Would my method of solving this symmetric difference set be correct and is my answer correct?

Problem: If A = {1, 2, 4, 6, 7} and B = {1, 2, 4, 6} and C = {1, 3, 4, 7}, what is A ⊕ B ⊕ C? 1) A − B = {1, 2, 4, 6, 7} − {1, 2, 4, 6} = {1, 2, 4, 6, 7} − {1, 2, 4, […]

Categories

## Knowing one \$0\$ of a quadratic trin., can I determine some necessary ( or sufficient) condition regarding the second root, in terms of the first one?

Suppose I am given this equation : \$x^2 – 12x – 28\$ = 0. Using the rational root theorem, I find that the possible rational roots are ( if I am correct): \$\$1/1, 2/1,7/1,14/,28/1\$\$ or their additive inverses. I try the number \$(-2)\$ and I observe it works. At this stage, knowing one solution of […]

Categories

## Backpropagation giving strange values in C++ neural network

I am trying to solve the iris data set with a neural network I wrote in C++ from scratch, which has 150 rows divided up into 3 different flowers with 4 columns and then a fifth for the flower type which I converted to a 0, 1 or 2. Problem: Whenever I run the network […]

Categories

I have successfully used the sqlsrv extension with php 7.0, 7.1, 7.2 and 7.3. Each time I upgraded the PHP being run on my IIS I installed and used the sqlsrv extension. I know downloading the dll files to put in the extensions folder has rules, such as ts vs nts, version number (72, 73, […]

Categories

## XPS 9560 battery drain

Summary: suspecting battery drain and (maybe) powertop malfunction. Ever since I updated to the 19.X series (currently 19.10) I’ve experienced a very sharp decay in the battery life that I cannot pinpoint (Probably unnatural battery drain on a Dell XPS 13). To have an idea, I used to get around 12-10h of mild using and […]

Categories

## R Creating a p-value matrix with missing values

I have a dataframe with many missing NAs. I want to create a correlation matrix with a p-value matrix as shown in this link: Link I created the correlation matrix like this: as.data.frame(round(cor(df, use = “pairwise.complete.obs”, method = c(“spearman”)), 1)) Now I am trying to create a matrix that shows the p-values for each correlation. […]

Categories

## How to identify a range of data points between a minimum and a maximum in a dataframe in R?

My measured variable V1 follows cycles: it goes up to reach a maximum and down to reach a minimum. I call “cycle” the range of data points between 2 consecutive maxima (cycle 1 is maximum 1 – minimum 1 – maximum 2, cycle 2 is maximum 2 – minimum 2 – maximum 3). The minima […]