Skip to content Skip to sidebar Skip to footer
Showing posts with the label Math

How To Plot An Ellipse By Its Equation On Python?

So I have this equation: x^2 + 4*(z+10)^2 = e^(-0.05*z) How cant I plot it using, for example, Mat… Read more How To Plot An Ellipse By Its Equation On Python?

Reducing The Complexity/computation Time For A Basic Graph Formula

I tried to use the basic formula (got it from another SO question), for calculating the max number … Read more Reducing The Complexity/computation Time For A Basic Graph Formula

Fisher's Linear Discriminant In Python

I have the fisher's linear discriminant that i need to use it to reduce my examples A and B tha… Read more Fisher's Linear Discriminant In Python

Difference Between **(1/2), Math.sqrt And Cmath.sqrt?

What is the difference between x**(1/2) , math.sqrt() and cmath.sqrt()? Why does cmath.sqrt() get … Read more Difference Between **(1/2), Math.sqrt And Cmath.sqrt?

Mathematical Equations - Rendering And Evaluation With Python And Qt (and Sympy?)

I am developing a GUI application (in the civil engineering context) with python3 and QT and want t… Read more Mathematical Equations - Rendering And Evaluation With Python And Qt (and Sympy?)

Trying To Get My Python Code To Ask A Set Number Of Questions And Then Stop

At the moment the code runs for an infinite amount of questions and never stops unless you select t… Read more Trying To Get My Python Code To Ask A Set Number Of Questions And Then Stop

Newton Method For Transcendental Equation

Transcendental equation: tan(x)/x + b = 0, where b is any real number. I need to introduce n and gi… Read more Newton Method For Transcendental Equation

Trajectory Intersection In Python

I'm detecting persons and vehicles using tensorflow and python. I calculate the trajectories an… Read more Trajectory Intersection In Python

Base Conversion For An Array Of Integers

I am trying to make a code that converts integers in array to a given base and padding them to make… Read more Base Conversion For An Array Of Integers

Wrong Value For Cube Root In Python

Using Python 3.5 both at repl.it and the console in Windows, I get wrong answers for cube roots. W… Read more Wrong Value For Cube Root In Python

Algorithm For Generating A Tree Decomposition

I want to construct a tree decomposition: http://en.wikipedia.org/wiki/Tree_decomposition and I hav… Read more Algorithm For Generating A Tree Decomposition

Iteration Performance

I made a function to evaluate the following problem experimentally, taken from a A Primer for the M… Read more Iteration Performance

Mortgage Calculator Math Error

This program runs fine, but the monthly payment it returns is totally off. For a principal amount o… Read more Mortgage Calculator Math Error

How Do I Subtract 11 From A List And Mod 121 The Same List All At Once?

This is for prime number theory. This theory which actually shows up as an axiom factors numbers l… Read more How Do I Subtract 11 From A List And Mod 121 The Same List All At Once?

How Can I Put Type() With If Statement In Python?

I have TypeError: a float is required when I try putting type() with if statement example: from mat… Read more How Can I Put Type() With If Statement In Python?

Sine Wave That Exponentialy Changes Between Frequencies F1 And F2 At Given Time/amount Of Samples

I'm trying to implement Python method that generates sine wave, which ramps up between two freq… Read more Sine Wave That Exponentialy Changes Between Frequencies F1 And F2 At Given Time/amount Of Samples

How Do I Make A Function To Draw Arcs Inside A Matrix?

I need to make a function/method that draws arcs inside a matrix. I would use 1s as points that sha… Read more How Do I Make A Function To Draw Arcs Inside A Matrix?

Python : Easy Way To Do Geometric Mean In Python?

I wonder is there any easy way to do geometric mean using python but without using python package. … Read more Python : Easy Way To Do Geometric Mean In Python?

Calculate Inverse Of A Function--library

Is there any library available to have inverse of a function? To be more specific, given a function… Read more Calculate Inverse Of A Function--library

Truncate Decimal Places Of Values Within A Pandas Df

I can truncate individual floats using the truncate function in math. But when trying to pass the s… Read more Truncate Decimal Places Of Values Within A Pandas Df