Questions Tagged [Math]

Questions Tagged [Math]

Math involves the manipulation of numbers within a program. For general math questions, please ask on math.stackexchange.com. Note: If your question is about unexpected results in floating point calculations, please read first.

41,491 questions
0 votes
0 answers
7 views

Solving Nonlinear system of equations in Mathematica (wolfram)

I'm Trying to solve a System of equations in Mathmatica with the Function of NSolve The Code should represent a Mass Balance of A factory, in one of the Flows im trying to change the Conc. of the ...
0 votes
0 answers
12 views

Unity: how to manually roll a ball based on 1m / unit?

I have a sphere. I calculate its number of rotations it has to do to reach the "next point". public class MoveAlongPath : MonoBehaviour { public double nbRotations; private void ...
0 votes
0 answers
12 views

obtaining z values of a circle in html4 and javascript

With an array of HTMLElementObject with their corresponding property values I obtain a circle by change their x and y values as follows <script> for(o=0;o<61;o++){ eval('p'+o).style.top ...
0 votes
0 answers
10 views

Cartesian to Polar coordinate transformation in manim

How can I write a code that would show me this transformation, in the same format as the equation not like carrying it to the complex plain etc. because I want to play with it for other functions as ...
1 vote
0 answers
20 views

Java If given a graph adjacency List how do I print all paths start to end

I am given an adjacency List {A=[B, C, D], B=[A, C, D], C=[A, B], D=[A, B]} with a start and end value and have to print out all possible paths from start to end only once. So from start C to end D ...
-5 votes
0 answers
39 views

How to calculated 1+1/2+1/3+...+1/N with T (1<=10^5) times of N (N<=10^6)? [closed]

How to calculated 1+1/2+1/3+...+1/N with T (1<=10^5) times of N (N<=10^6) ? enter image description here
1 vote
0 answers
24 views

How to find edges in voronoi diagram

I'm trying to construct a Voronoi diagram using p5.js.So far I have managed to create an image representation of it by coloring pixels that belong to the same region, using the algorithm from this ...
1 vote
0 answers
12 views

Math in Uniswap UQ112xUQ112 contract

Can anyone explain how the math in this contract works? pragma solidity =0.5.16; // a library for handling binary fixed point numbers ((number_format)) // range: [...
3 votes
1 answer
31 views

How can I efficiently calculate the mathematical limit for average number of rounds in a game?

For an odds calculator for a board game, I need to calculate how many rounds a battle will last on average. Because there is a possibility that both sides in the battle will miss, a battle can ...
  • 16.1k
-2 votes
1 answer
32 views

Derive the formula that from x and y generates z

I need to obtain the math formula that with 2 variables (like x and y) generates an outcome z. I have no information about the type of formula, but I have many examples of x, y and z values. There is ...
0 votes
1 answer
24 views

Calculate Multiple Column Growth in Python Dataframe

The data I used look like this data Subject 2000_X1 2000_X2 2001_X1 2001_X2 2002_X1 2002_X2 1 100 50 120 45 110 50 2 ...
-3 votes
0 answers
18 views

applied mathematics for machine learning [closed]

Currently doing backend development (C++). On the whole, I like it. Now there is an opportunity to learn machine learning, including going for a second degree - applied mathematics. Do you think it is ...
0 votes
1 answer
68 views

How rewrite foreach from Stream API to another function for calculating sum of fractions?

I have a list of fractional numbers, I need to check that the sum of these numbers is less or equals than 1.0. How can I do this with reduce function from streams api? Now my solution is such. But ...
-1 votes
1 answer
48 views

Multiplication using bitwise operations [closed]

I've been looking around for a way to extended a boolean function in boolean algebra into the classical algebra and I think all I need is Multiplication and Addition to do that so assuming that a,b ...
1 vote
0 answers
30 views

Why the erf functions have no range error?

The erfcf(FLT_MAX) produces 0.0f and sets errno to ERANGE. The erff(FLT_MAX) produces 1.0f and does not set errno to ERANGE. In both cases returned results differ from the "true results" (i....
  • 4,404

15 30 50 per page
1
2 3 4 5
…
2767
James H. Sterling
Author

James H. Sterling

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.