44,420
questions
-3
votes
0
answers
10
views
The conventional form of the general optimization problem with constraints [closed]
Why do we define the formula this way?
min f(X) s.t. g(X)<=0
max f(X) s.t. g(X)>=0
instead of this way?
min f(X) s.t. g(X)>=0
max f(X) s.t. g(X)<=0
-1
votes
0
answers
40
views
Program that receives the amount of days one works and calculates the ROI on a investment of $100 in the S&P 500 had they invested 100 every day.; [closed]
def standard_and_poors(work_days):
counter = 1
percentage_gain = 1
return_on_investment = 0
investment_per_day = 100
while counter <= work_days:
print (f"\n ROI on ...
0
votes
0
answers
14
views
How to calculate maximal distance error given a 3D covariance matrix of object's position error?
Given the 3x3 position error covariance matrix, I need to calculate the maximal offset of the position with 95% confidence level
I've read this paper, it solves the problem, but only for 2x2 ...
-1
votes
0
answers
32
views
Calculate when a team would be out of compliance given a stream of WIs coming in with associated KPIs [closed]
Trying to calculate when our team would be out of SLA, for how long, and what headcount we would need to avoid any days out of SLA. Seems simple at first, but it was not. Tried in excel, but thinking ...
-1
votes
0
answers
43
views
How to create millions of permutations without duplicates [closed]
I know this has been asked a lot but I can't seem to find the solution when dealing with larger numbers. What I'm trying to accomplish is to create a permutation of {letter}{5 digits} which in total ...
-1
votes
2
answers
36
views
How to calculate number of columns such that every row has either all even or all odd numbers of items, in compact a way as possible?
I would like to layout unicode glyphs similar to this:
There could be anywhere from 13 to say 100 items in the displayed collection (alphabets, abjads, abugidas, syllabaries, etc..), so could have a ...
-1
votes
0
answers
24
views
Complex Fraction [closed]
How to write the given fraction in html?
Math function
Fraction
Subscript
<Math>
<Mfrac bevelled="true">
<Msup>
<Mi>|q<msub>1</msub>q<msub>2</msub>...
-2
votes
0
answers
24
views
Issue with Partial Detection of Pages by Nougat OCR
I am using Nougat OCR model to convert the mathematical equations to latex format. The problem I have come across is that some pages are not being fully detected by the Nougat OCR model. In many cases,...
2
votes
0
answers
61
views
How Do I Change The View To Orbit Around A Changing Pivot Point?
I wanted to know where I am going wrong with my code. I'm trying to replicate a similar view to how Old School Runescape works, except instead of 3D objects I am using sprite stacked objects to fake a ...
0
votes
2
answers
95
views
How do I calculate the volume of a horizontal cylindrical tank in c++?
I have been trying to use a code to calculate the volume of the liquid in a horizontal cylindrical tank.
I will use an esp32 micro controller to take sensor data and calculate the volume of water in ...
0
votes
1
answer
28
views
Getting wrong Output for Second Dominant Eigen Value using Power Method Technique
As i am trying to write PCA from scratch, using the Power Method Technique to calculate the Eigen Values, only the first one is correct and rest other are incorrect . What am I doing Wrong ?
Using ...
2
votes
0
answers
34
views
Online Softmax has another equivalent calculation method?
I am working on an online softmax calculation and have implemented two different recursion methods. The first one is the original implementation of online softmax, while the second method is a variant ...
0
votes
1
answer
41
views
Why the left matrix of single value decomposition obtained by scipy.linalg.svd() and eigenvectors obtained from scipy.linalg.eig() are different?
I tried to get eigen vectors by single value decomposition using scipy.linalg.svd() which gives me three outputs the left matrix U, diagonal matrix S, right matrix Vh. Where U is supposed to be ...
-6
votes
1
answer
83
views
Is it possible to calculate RSA public exponent when we have Private key? [closed]
I have RSA d (private exponent) that is 0x10001 and n (modulus).
As I understand, n is common between Private and Public keys.
Now I need to calculate e (public exponent), is it possible?
I also tried ...
1
vote
1
answer
31
views
Sympy parametric plot in polar coordinates
I want to plot the parametrization r2=4 cos(t). From 0 to 2π for t this should give me two lobes, symmetrically placed around the y-axis, but I can only get one in sympy due to the square root.
import ...