Skip to main content
Filter by
Sorted by
Tagged with
3 votes
2 answers
187 views

I'm trying to compare the output of two tensors with different numerical precisions: one in float64 (fp64) and the other in float32 (fp32). Both tensors are computed from the same inputs and represent ...
Alexandre Benoit's user avatar
0 votes
2 answers
140 views

Is there a way to accept dot and comma as a decimal separator in an numeric entry field? From the keyboad it is not allowed to enter a dot in a german enviorment. <Entry Text="{Binding LVK}&...
GrasM4n's user avatar
  • 43
1 vote
1 answer
61 views

I'm trying to implement a function in Python that reduces a square matrix to upper Hessenberg form using Givens rotations. I know that this should be possible Wiki and sometimes preferred over ...
ldro's user avatar
  • 11
4 votes
1 answer
143 views

I couldn't find documentation for this behaviour and it looks like a bug ([Edit] it is indeed : gitlab.haskell.org/ghc/ghc/-/issues/10387). Am I missing something ? In GHCi : > import GHC.Real ...
141592653's user avatar
  • 794
0 votes
0 answers
98 views

I am using Apache Calcite 1.38.0 along with the PostgreSQL JDBC driver version 42.7.2. When executing an SQL query through a JdbcSchema connection to my PostgreSQL database, I encountered an exception....
Eric's user avatar
  • 1
0 votes
0 answers
50 views

It is need to solve the problem using the Jacobi method: d^T/dx^2 + d^2T/dy^2 = 0 with conditions at the boundaries of the square: T(0, y) = 1, T(x, 1) = 1, dT/dx(1, y) = 1 - y, dT/dy(x, 0) = x. ...
ulyannaaa's user avatar
0 votes
0 answers
35 views

Windows Forms has a control NumericUpDown that allows the user to choose a number by clicking tiny up and down arrows, or entering a number via keys. Is there a way to add this functionality, but ...
Anna Vahtera's user avatar
0 votes
0 answers
38 views

I am trying to write code that will fit logistic function to set of data. I am using Levenberg-Marquardt routine (as given in Numerical Recipes 3rd edition) and that requires me to supply a function ...
martin's user avatar
  • 2,670
0 votes
1 answer
82 views

I'm trying to evaluate a polynomial of degree 61. However, around the point sqrt(2) I get some weird behavior. The graph of the polynomial becomes erratic. What could be the reason for this. The ...
Olof R's user avatar
  • 123
0 votes
2 answers
193 views

Fiddle select 5.0 / 2 , pg_typeof(5.0 / 2); pg_typeof 2.5000000000000000 numeric Why the result is 2.5000000000000000? When we insert 2.5 into a numeric column or select 2.5 from a numeric column ...
Bek's user avatar
  • 27
5 votes
2 answers
94 views

Background I am trying to decode a bitstring from a QR-Code, where the data was encoded in numeric mode. According to this QR-Code tutorial: https://www.thonky.com/qr-code-tutorial/numeric-mode-...
Immanuel Neumann's user avatar
1 vote
3 answers
153 views

In his classic works from the 1970s, Richard Hamming advises setting up floating point calculations to be more likely to underflow than overflow. For example, if you want to calculate 1 - 1/(exp(x)+1),...
SRobertJames's user avatar
  • 9,367
0 votes
0 answers
39 views

The expression I'm integrating is Where the latent variables are sampled from the a multivariate distribution as following: And the random variables w_n given a latent variable is sampled from a ...
cdt123's user avatar
  • 71
2 votes
1 answer
91 views

I am trying to approximate 255 / sqrt(x) using Newton's method to avoid using division or the sqrt() operation on an architecture where those operations are expensive. My derivation is: y = 255 / sqrt(...
the five states's user avatar
1 vote
3 answers
217 views

I am using the following data and have come across a roadblock. I used read.csv to import my raw data into r. # from OHP$ohp17.value list(NULL, NULL, "19.9 nmol/L", "0.7 nmol/L", ...
Bev's user avatar
  • 11
0 votes
1 answer
31 views

Stock should be converted to a numeric valueBy replacing {stock[1]} by "available " to 100, and "limited stock" to 10, "out of stock" to 0. The idea is to work with ...
littlebees's user avatar
0 votes
2 answers
286 views

I'm starting to learn sql in porstgresql. I have create a table with numeric(6,2) structure and trying to import data. But data has some row that has NULL value. Now I'm getting "ERROR: invalid ...
Raihan Rahman's user avatar
1 vote
2 answers
212 views

A lot of numerical solvers (such as this one), for some reason, only supports solving Ax=b where x, b are vectors. What if I want to solve AX = B, where X and B are matrices. I know numerically one ...
Taylor Fang's user avatar
1 vote
1 answer
94 views

so below is the code snippet i have for Julia: using Printf using Plots gr() # Parameters definition Ny = 21 # Number of points in y-direction Aspect_ratio = 10 # Ratio of ...
CFDn00b's user avatar
  • 11
1 vote
1 answer
48 views

I am trying to use reshape function in R to arrange my data timepoints in a table. The variable that I am using to split it is numerical, but when reshape arranges the table it incorrectly puts 2,0.5,...
Gabriela Toomer's user avatar
0 votes
0 answers
99 views

Bascially, i have a code that filters the data coming from the API. The data is reasonable, however, the values of the active Users are in string format. Once I changed them (to integers), my max ...
Teko JR's user avatar
  • 21
1 vote
1 answer
492 views

Given that the size is variable, I am trying to calculate the average cost of a numeric(p, s) attribute. In my case, numeric(10, 2). From what I understand of the Postgres documentation, this means I ...
vale383's user avatar
  • 119
2 votes
1 answer
686 views

I would like to solve the following DGL system numerically in python: The procedure should be the same as always. I have 2 coupled differential equations of the 2nd order and I use the substitution g'...
Hendriksdf5's user avatar
1 vote
2 answers
137 views

I am working on a famous classical physics problem: - the three body problem. I have made the follwoing program : - #include <math.h> #include <iostream> using namespace std; class ...
Ronny's user avatar
  • 31
0 votes
2 answers
356 views

In my API RAML, there is a query parameter named 'sfIds' which is an array type. I need to implement validation within the RAML to ensure that the array elements are always numeric, such as [111, 222, ...
Triumph Spitfire's user avatar

1
2 3 4 5
64