Skip to main content

An open source library containing multiple known STEM equations in a functional form.

Project description

simple-equ

An open source library containing multiple known STEM equations in a functional form.

Installation

pip install simple-equ

(For versions 3.8 or newer)

Optional: Use a venv (virtual environment).

Usage

simple-equ is simple, yet practical. That is the problem it solves. Sure, someone with some knowledge in their field can implement this library's functionality. But, let's look at how that would realistically look like:

a = 3
b = 4
c = 4

"""
Here is an example of implementing a basic quadratic equation
"""
import math

delta = b**2 - 4 * a * c
solution1 = (-b + math.sqrt(delta)) / (2 * a)
solution2 = (-b - math.sqrt(delta)) / (2 * a)

"""
Here, just an import and a function call is needed!
"""

import simple_equ.math_general.algebra as sa

result = sa.basic_quadratic(a,b,c)
Looking to calculate the sin of an angle?
Well... here is the algorithm to do this, in pseudo-code

function sin_taylor(x, n_terms):
    result = 0
    sign = 1             # alternates between + and -

    for i from 0 to n_terms-1:
        term_exponent = 2*i + 1
        term_factorial = factorial(term_exponent)
        term = sign * (x ^ term_exponent) / term_factorial
        result = result + term
        sign = -sign     # flip the sign for next term

    return result

function factorial(k):
    if k == 0 or k == 1:
        return 1
    else:
        f = 1
        for j from 2 to k:
            f = f * j
        return f

"""

import simple_equ.math_general.geometry as sg
sin30 = sg.sin(30) # In case you didn't notice, this is the same thing in simple_equ
"""
Normally, we would put a linear regression here. But it is pretty monstrous.
Worry not though. This is how to do it with simple-equ:
"""

import simple_equ.economics.statistics as se

se.linear_regression([3, 4, 6],[4, 6, 7])

You just import the field of your liking, and then boom!

Structure

The library is structured into fields. These fields have their own folder, aka modules. However, a field can have multiple subsets. These subsets are usually present in the form of python files. For example: algebra.py and geometry.py, are examples of subfields of the general math field called math_general.

To import something in a practical sense in simple_equ, the structure looks like this:

import simple_equ.field.subfield as ...

Practical examples include: import simple_equ.math_general.geometry as sg import simple_equ.economics.statistics as se

Contributing

Contributions are always welcome!

The project encourages a community-driven approach. Everyone can contribute. Be sure to be kind and respectful. Do not assume that something is known to the contributor you are talking to just because you know it and do not be rude or even make comments about their skill. This behaviour is not welcome here.

See contributing.md for ways to get started.

Features

  • Community driven and open
  • Functions from different fields
  • Reusable
  • Highly accurate
  • Simple yet practical

Do not forget to star the repo if you like it! It means a lot! Thank you for reading this document and getting involved with our community :)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

simple_equ-1.3.954-cp312-cp312-win_amd64.whl (117.3 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.3.954-cp312-cp312-win32.whl (114.4 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.3.954-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.954-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.3.954-cp311-cp311-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.3.954-cp311-cp311-win32.whl (115.6 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.3.954-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.954-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.3.954-cp310-cp310-win_amd64.whl (117.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.3.954-cp310-cp310-win32.whl (115.9 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.3.954-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.954-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.3.954-cp39-cp39-win_amd64.whl (117.7 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.3.954-cp39-cp39-win32.whl (116.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.3.954-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (298.9 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.954-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.3.954-cp38-cp38-win_amd64.whl (118.2 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.3.954-cp38-cp38-win32.whl (116.6 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.3.954-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.0 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.28+ x86-64manylinux: glibc 2.5+ x86-64

simple_equ-1.3.954-cp38-cp38-macosx_11_0_arm64.whl (120.2 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

Details for the file simple_equ-1.3.954-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f23b4ff527d52b8bb127475d3f5b05990456b9bd68fb887b00aead98badcb847
MD5 35ea2414fc4df9dc4cff4d87ea4efc18
BLAKE2b-256 9bd512d2c302ebff8c46f6e59a8b9e7c2d2af1032752eb22eecfa4e9e5695da4

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp312-cp312-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.4 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 b9b36bfac9051bc7320365a46fa6aaceddd5b4327440d49965f7530364a46582
MD5 07de3411997817f815c48edf14104d3a
BLAKE2b-256 2c9518a48b531af3c7a3d50471e2d80a90a1d231715ca7602999df125670d85e

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 52dc444109af55fb46f673801e2c4cca24b9bf4f1f8012747117c85541ca5c03
MD5 9f579724444436b28b641668002ddfb7
BLAKE2b-256 fd60e29dccf58d545fad9c1d9d2267a7ede03049c653220ed4d64abbd5364377

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d2d8997cf50822474069f60a21bd66314a3862950e7b3c8f4165c769ead14ffb
MD5 26fece692e4110c4f6f4227b0c1475fc
BLAKE2b-256 5df5daa5f096d0b10a8c3ae276d1f456aae55c00f229ea303767d1bd1057edf3

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b6091ac4bbe7b1a08b6c0f63a7c939a8f4e5ab8ebb445c2aa679b27340969e61
MD5 2a1a95fa16d1918d1f86b9ce8738de42
BLAKE2b-256 e18f4e0c3f5a3e5149a0f7d7dfc724a44fb5d6ed9c2db778134ad02b43750b50

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp311-cp311-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.6 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 9334dbbad2eec44b73cfbdcc496ac33f185f87d1c5058573c1d04f9b5d520a6b
MD5 1ed1c775727ff0eca9fa9c07cf049568
BLAKE2b-256 211db07588edf29d078aa37c15123c654540a2fc059cb934ce937f7a820911dd

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 4d65da136bd7d6d0067ac3e725195e625a7c8e49d7b712b9df5ea4e1109b98fb
MD5 5070e101c1aa5bae5a16c524a0739ccc
BLAKE2b-256 27dd3aa08aa22c2d79d05258032d21a0d842602a47c119349b9eb02bc88743e0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 856cb799c352a3429fa63e562450e22746b8caf926f7dff249a31a4d513692a9
MD5 a8a711167214b0b54e30432b50ff088a
BLAKE2b-256 31f853348ea4baa2ec2f3adae6ba1072ee63f8c1c84d649cfa67e310404ff224

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 c9a0c3f03162b8d85d037f142029007f1a67e776992ab1f71db6df1f0c810a54
MD5 621d3edba639371c763e4a712107a0dc
BLAKE2b-256 28b501cd7ab598eab023bac3191e9cca5eb7f20a4ecfc73e222617f4cdd6d7bb

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp310-cp310-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp310-cp310-win32.whl
  • Upload date:
  • Size: 115.9 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a133587bc37348b2c1c4a39ed0383c2138bc291edc29c72e7c5d1e62573c5487
MD5 1d9060db85e4cffec4c69f73c01db4cb
BLAKE2b-256 f5c0167f51806c25611253becf7fe4bc015bab75c30e4aecd6e0b78212a0a526

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 65387cc6d0560999900aacd598ae0c45ec8370d47cbe8c0c8111d03cad907a85
MD5 95cd4d1d9f6ada590efec19a97e286fb
BLAKE2b-256 4b5d65a52a311d9b8b2431da9d2a0e77fde69a7820ee06a3c54f1371eef05ec2

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 194ad21ecb796000bfee1523cf4024c98e5da9ea5ac85a69d67e6054bc5945a5
MD5 c0a58a94f10997f2379f77713331c03a
BLAKE2b-256 12d9eea66e5c2fbb887c07e43edd0a640adfd56545c8ada82181345f5a307bfe

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 527b4ceeb6226731cb383c322aee65b44708063845c7c1d16ebfa004240d7b95
MD5 bd0c95a27104ff2feba44741c21ad029
BLAKE2b-256 c97befaca23f9b5b0c7f13eb527163198a768d7063331ffcdfedf65a90dbd733

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp39-cp39-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.0 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0f913941833158f3cfe82b6399e7326c8a1b313727366f979b972b6a2f83f35f
MD5 da7b2b106a2e692602145b5034c5a929
BLAKE2b-256 63df816b428e5bdee45714cd3358a1cf523155545be3607097ebcb030d70ef90

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 bc344a1de2792f59b8ecdda9ff25c242e2df86e7a37bdfc3589b238e15bd4e80
MD5 4f4c3ec11aa7901dc43344499c8b8ac4
BLAKE2b-256 b0a75639908c397c1f70f2e1456aebdf2105a23c2fd372661fa360181161f76a

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2daa25139c4f754fd0f27458cf8cd3ad10a9ec144b34db92a21e3c4620a93ffa
MD5 09f158648ed4f3d3ff48f90d8ab82963
BLAKE2b-256 3518bb88c08ac84995c07dd0bfcc3e509c829a41c28ad009d270e863ca276860

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.2 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 30503ee2fbf1e686682193527681da81121d396055152d2903aa28c900897655
MD5 d33bb2b5eff7e774a371f674d7f53318
BLAKE2b-256 9fa44e97bfaa5adc739f7d60539d4ff4491fddd4142beb1cfddfbb3d3ebdf12b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp38-cp38-win32.whl.

File metadata

  • Download URL: simple_equ-1.3.954-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.6 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for simple_equ-1.3.954-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 fe395ce1062eba3cf2e95c52629b3de672752734838ff62d6cb3af50d1d4a1d1
MD5 c0dd18c449398b8dfeca6603d9a17084
BLAKE2b-256 3bc6edf39b6d363be8301d9c54e172139ec7df7d24b9c94f267606a679892174

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 afca0a2b5f57b12ae66d76870a748825c1d3d8154c44cc176556d18cb682e4d2
MD5 e2cd891ed8a1f94061dc0068792de01e
BLAKE2b-256 bb32a4158d0a0952c2a2e8f50a9bfe444af2130e2fa67fb88a177516bc5becf5

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.954-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.954-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 7f8a27e61e284570c97a6160982d409639f3f78ca02f2c9028772b830e259759
MD5 faadeb92cee5eb58e465becd673942d3
BLAKE2b-256 58949eeeb571a50acd3835de5e9ab05a342b140ccdb36e15ccafede3d040f081

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page