Categories
Ask Mathematics

Question regarding sequence of continuous functions

$\left \{f_n \right \}$ is a sequence of continuous non-negative functions defined on $[0,1]$, such that $\lim_{n\rightarrow\infty} f_n(x) = 0$ pointwise on $[0,1]$. I am asked to prove that $\forall \epsilon > 0$, $\exists \delta > 0, N \in \mathbb{N}$ and points $x_1, … , x_N $ and $n_1, … , n_N$ such that: $$[0,1] […]

Categories
Mastering Development

PyQt5 QTablewidget item alignment

what I want is to align my checkbox which is in Qtablewidget. here is what my script like mylist = [some list I made..] for i in range(len(mylist)) : row_count = self.tableWidget.rowCount() nowset = row_count+1 self.tableWidget.setRowCount(nowset) self.tableWidget.setItem( row_count, 0, QTableWidgetItem(mylist[i])) chkBoxItem = QTableWidgetItem() chkBoxItem.setFlags(QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled) chkBoxItem.setCheckState(QtCore.Qt.Unchecked) self.tableWidget.setItem( i, 1, chkBoxItem) self.tableWidget.setFocusPolicy(False) self.tableWidget.setColumnWidth(1, 150) self.tableWidget.horizontalHeader().setSectionResizeMode(0, […]

Categories
Mastering Development

golang didn’t free variable after end of the function

I wrote a simple program by golang as below and it did occupy 4GB of memory space and didn’t free it after end of the function. How can I free the occupied memory? func main() { wait := make(chan bool, 1) go func() { slice := make([]int64, 0) for i := 0; i < 1000 […]

Categories
Ask Mathematics

Tightness of Hilbert-space-valued arrays

Let $\mathcal{H}$ be a separable Hilbert space. Assume we have some triangular array $W_{n,j}, j=1, \ldots ,n $ of $\mathcal{H}$-valued random elements with $\mathbb{E} \Vert W_{n,j} \Vert_{\mathcal{H}}^2 < \infty$ that is strictly stationary (which means that $W_{n,1},\ldots , W_{n,n}$ is strictly stationary for every $ n$). After Remark 3.3 in “Central Limit and Functional Central […]

Categories
CMS Mastering Development Wordpress

Set WP_query ‘order’ option by another tables value

I created like system in wordpress. And I created ‘sayim_beyenme’ table and created ‘say_post_id’ and ‘total_post_likes’ datas. Now I want to display my posts orderby total likes per each post. I get posts ids with array_map, but I dont know how can I order these posts by total_post_like values. For testing I have used ‘title’ […]

Categories
Ask Mathematics

Characterization of weak convergence for a Hilbert space

Suppose $H$ is a Hilbert space, $L\subset H$ is a total subset, i.e. $\overline{span(L)}=H$. Let $\{f_n, n\geq 1\}\subset H^∗$ be a sequence of linear continuous functionals such that $\forall y\in L$ we have $f_n(y)\to 0$. Is it true that $f_n(x)\to 0$ for all $x\in H$? Why can’t one simply apply the “characterization of weak convergence” […]

Categories
Ask Mathematics

Find the subgroup of $S_4$ generated by $(1,2,4)$. What is the order of $(1,2,4)$?

I am literally just being introduced to group theory this is all new. I know that the permutations that arise are $(4,1),(1,2),(2,4),(1,2,4)$ This is the same as saying that $4$ goes to $1$ then $1$ goes to $2$ and then $2$ goes to $4$ and then we have the trivial case which is itself $(1,2,3,4)$ […]

Categories
Ask Mathematics

PMF of total score in a card matching game

Consider a deck of cards with ​$N$​ different playing cards equally distributed among $M$ suits (e.g., $N=52, M=4$). You draw all the cards without putting any back. After the first card, each time you pick a card, you compare it to the previous card. If the suits match, you get ONE point; otherwise, you get […]

Categories
Ask Mathematics

Number of Solution for the given condition [closed]

Given X, p, a, b. We need to find out how many positive integers n ( 1 <= n <= X) satisfies the following condition:- $$na^n \equiv \, b(mod\,p)$$ Constraints: 2 <= p <= 106, 1 <= a,b< p, 1 <= X <= 1012 I have no idea how to solve this question, any approach […]

Categories
CMS Mastering Development Wordpress

Right url for custom post type

I have custom post type called news2, and its url is land/news2. The archive page url is working well but how can I set my taxonomy page and single page right // Change custom post type permalinks function news2_links($post_link, $post = 0) { $terms = wp_get_object_terms( $post->ID, ‘news2cat’ ); if($post->post_type === ‘news2’) { return home_url(‘news2/’ […]