734 questions
0
votes
0
answers
48
views
Wrong Precision Results with std::ostringstream
I need a way to perform basic math operations(like sum, sub, div and mul and sqr/sqrt etc.) on basic strings to get extended precisions like longer decimal digits.
I've tried to perform simple ...
-2
votes
1
answer
98
views
typescript number type with bit operations [duplicate]
in typescript, as the number type can be int or float, so what if I use number type with bit operations
I have see some library use this
const a = 1.23
const b = a | 0
Sorry for the inaccurate ...
0
votes
0
answers
34
views
Dynamic class generation with autocompletion support
I needed something like the TypeScript Utilities but for Pydantic, and I decided to do it myself since the one they offer must be used as a dictionary and I don't like it at all, also it only works ...
0
votes
0
answers
17
views
UI not showing operation summary and description
I use quarkus-bom 3.6.9
I used the Operation annotation in order to have summary and description in the swagger ui
@Operation(operationId = "findTornateByRevId11",
summary = &...
2
votes
1
answer
81
views
The // operator is returning a floating number when one input is floating. Documents say it does integer division, returning the floor
Created my example in a shell script copied here.
Python 3.12.5 on win32
Using a float for the dividend:
>>> 12345.342424 // 1000
12.0
>>> import math
>>> math.floor(12345....
0
votes
0
answers
40
views
Need help in right-shifting a task in production schedule of multiple machines and multiple jobs
I am developing a flexible job shop scheduling algorithm with fuzzy processing times, where I try to defuzzyify the production times as times progress.
This is one of the crisp schedules I generated. ...
1
vote
1
answer
105
views
Jolt Conversion remove the empty string from the jolt
Below is the input ,spec and output spec and the expected spce.
here in the outputspec we are getting the tag with the empty values, That empty tag needs to be removed from the output jolt.
Below will ...
0
votes
2
answers
36
views
JOLT operations to filter struct based on keys given in string array
I have this JSON input:
{
"input": {
"a": "valueA",
"b": "valueB",
"c": "valueC"
},
"fieldsToFilterBy":...
0
votes
1
answer
71
views
Copy One or Multiple Files with Powershell and Append DATE To the Front of the Filename
I created this script that works perfectly in ISE but fails with the below output when porting it into my command line tool. Here is the script.
$source_folder = $args[0];
$destination_folder = $...
0
votes
0
answers
55
views
Operations and differentiation with symmatrix in MATLAB
Step 1: declaration of symbolic objects using symmatrix:
n = 2;
A = symmatrix('A', n);
lambda = symmatrix('lambda', [n,1]);
g = symmatrix('g', [n,1]);
phi = symmatrix('phi', [n,1]);
l = symmatrix('l',...
0
votes
1
answer
76
views
Ranking the images of ImageCollection in Google Earth Engine
I am writing a code in Google Earth Engine (GEE) where I get the monthly precipitation from the NASA/GPM_L3/IMERG_MONTHLY_V06 between 2000 and 2021. Then, I build an image collection of 12 images ...
1
vote
2
answers
74
views
how to operate on double-zeroed-indexed array?
how to operate on double-zeroed-indexed array?
I.e.
sub script ‘VBA code line
Dim s(), r() ‘VBA code line
s=[{1,2;3,4;5,6}] ‘VBA code line
r=sum(application.index(s,0,0), [{7,7;7,7;...
0
votes
1
answer
29
views
Pandas IO Operation Error From Windows EXE. No Error Running Python Script Directly From CLI
A tkinter GUI program runs fine with file IO operation, when run from CLI with python script.pyw. But when this code is converted to a Windows exe using pyinstaller, it fails while doing a df.to_csv ...
1
vote
0
answers
30
views
How to "reactivate" the + operator on a calculator, Javascript
My calculator sets my + operator to true, meaning it can't be used again, but I need to activate the operator after a number has been clicked.
I tried using an else if statement to target the number ...
0
votes
2
answers
78
views
Multiplying without a for loop in R
I am working on a project and I need my function to be as fast as possible since I have millions of datapoints slowing down my calculations. I feel my problem is quite simple, but I haven't been able ...