Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
Best practices
0 votes
3 replies
35 views

I’m working on an underwater acoustics project (student project) analyzing the sound of breaking waves. When a wave breaks, bubbles are entrained and their oscillations generate broadband underwater ...
Ruben Lott's user avatar
Advice
2 votes
11 replies
89 views

I am trying to build a Python algorithm that can transitively propagate inequalities between objects. For example, if I know that A < B and B < C, I want the system to automatically infer that A ...
Jasper's user avatar
  • 101
3 votes
0 answers
145 views

I know, this should be easy to solve, but I have been struggling with it for a few days and have not been able to find the problem. I have given two poses of the same object in two different ...
Alex's user avatar
  • 41
3 votes
1 answer
63 views

I have a opencl kernel that performs a dot product multiplication. When I run it on a random numpy array created by rng.random, it gives a percent error compared to numpy of -0.011454765, but when I ...
Edward Murphy's user avatar
-2 votes
1 answer
299 views

I was writing an implementation of the Knuth up-arrow notation, and I realized I had a problem. To make it work, I would have to iteratively stack more and more references to a function containing my &...
lhyperviolet's user avatar
0 votes
2 answers
82 views

I’m writing a Selenium script to auto-fill a contact form, like this one, and yeah, obviously the main site is different — cornerstonesalina.com/elements/contact-form/, there’s a math captcha like &...
Dima's user avatar
  • 9
2 votes
1 answer
96 views

So I'm trying to generate a map for a personal project using opensimplex noise, multiple layers etc. My problem is that I want to recreate the equator to combine with a temperature map to obviously ...
tygzy's user avatar
  • 748
2 votes
1 answer
137 views

I'm in the process of writing some mathematical operations. Here's a sample program to give you an idea of what kind of thing I could be doing: from dataclasses import dataclass import random @...
Ivan's user avatar
  • 559
2 votes
0 answers
63 views

I'm computing PDE residuals for The_Well datasets (e.g. turbulent_radiative_layer_2D and shear_flow) using finite differences, but the residuals are much larger than I expect. The data are generated ...
Kain's user avatar
  • 21
3 votes
1 answer
77 views

Let me put some context first. You see, I have a theory that multiplying all (a + b*z**k), for a determined z based on n, and some exponents k, it could return a**n+b**n. This is my brand new Cori ...
Kenay5 55's user avatar
9 votes
3 answers
327 views

The problem is to find the longest sequence of numbers from 1 to 100 such that each number is either multiple or divisor or the previous, and with no repetition. For example, 50 25 5 35 7 63 21 is a ...
Zorm's user avatar
  • 91
0 votes
0 answers
97 views

I recently wrote a program which renders the mandelbrot set and encountered some irrelevent issues, which some helpful users solved for me. One user reccommended I change an aspect of my code for ...
Jessica's user avatar
  • 41
-4 votes
1 answer
124 views

Here is my rotating code: pos = pygame.mouse.get_pos() x_dist = pos[0] - self.rect.centerx y_dist = -(pos[1] - self.rect.centery) self.angle = math.degrees(math.atan2(y_dist, x_dist)) self.image = ...
Aadvik's user avatar
  • 1,522
6 votes
1 answer
143 views

I'm trying to implement a block GMRES procedure (i.e., GMRES to solve Ax=b, but with b that is not a vector but a n x r matrix, where r << n). My goal is to have a first implementation in Python ...
Pierre Beaujean's user avatar
3 votes
1 answer
102 views

I know that Python 3 supports arbitrary precision arithmetic and so the common answer in all the materials that I have ever seen regarding this topic has been: "The only constraint is the ...
Wasradin's user avatar
  • 179

15 30 50 per page
1
2 3 4 5
481