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.2.58-cp312-cp312-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.12Windows x86-64

simple_equ-1.2.58-cp312-cp312-win32.whl (110.0 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.2.58-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (313.1 kB view details)

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

simple_equ-1.2.58-cp312-cp312-macosx_11_0_arm64.whl (114.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.2.58-cp311-cp311-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.2.58-cp311-cp311-win32.whl (110.7 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.2.58-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (277.7 kB view details)

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

simple_equ-1.2.58-cp311-cp311-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.2.58-cp310-cp310-win_amd64.whl (112.6 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.2.58-cp310-cp310-win32.whl (111.0 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.2.58-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (269.2 kB view details)

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

simple_equ-1.2.58-cp310-cp310-macosx_11_0_arm64.whl (114.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.2.58-cp39-cp39-win_amd64.whl (112.8 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.2.58-cp39-cp39-win32.whl (111.0 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.2.58-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (268.2 kB view details)

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

simple_equ-1.2.58-cp39-cp39-macosx_11_0_arm64.whl (114.4 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.2.58-cp38-cp38-win_amd64.whl (113.3 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.2.58-cp38-cp38-win32.whl (111.5 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.2.58-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (258.4 kB view details)

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

simple_equ-1.2.58-cp38-cp38-macosx_11_0_arm64.whl (114.9 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.12, 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.2.58-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d650b91decccd14eb707ecc955c2e6d6bc6fd2e720f0ae93ca5943fa7f25bf84
MD5 7dbe3a2f8994b4bf48dd61051091155c
BLAKE2b-256 ae593fc50cb90f8b6bd675d9ef674975257692bc92bb99902d4fc14a3dc1e960

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp312-cp312-win32.whl
  • Upload date:
  • Size: 110.0 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.2.58-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a34bf6838f8cd1797ffb331635797fa97be350e4e7305d5f6ab762b5460a6a17
MD5 9f0bf16e1f8f49a92ccb572c40ba7575
BLAKE2b-256 509f276fcb90a26db0b7ec825149ff00f54ad75a1a73c565653b0eedf4590ca9

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.58-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.2.58-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 82f9dcf6e17d2f1a3494855193ea6eb154cbb1bd78399260a3febc50097c2510
MD5 35c6d86a7863ac99ed4ea7856d76a835
BLAKE2b-256 001351cbe061777418e75b28f6e9e438103f81f7305adb65d1db2a039629f27a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.58-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6a88d9aea9560de2a0bc9872055effbd68454f000123ee7826307a31461bd8aa
MD5 cbadef3d776eeb0b136480d085cac231
BLAKE2b-256 c3e18442d10aba3a4514d40c101ff7af7a80bdc832e4204c55c9630b7affaec8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 112.8 kB
  • Tags: CPython 3.11, 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.2.58-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 892b0115a4dfb4b0fec5bc9ed58ef6eb01788fac5d9f3c60b59d492418fd981f
MD5 1700b489e881b4006a72ea6e3c71dd26
BLAKE2b-256 2147c4dd3c18311681efbb3a5f4de897bad2069fc18d8d7615fc559ee250068d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp311-cp311-win32.whl
  • Upload date:
  • Size: 110.7 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.2.58-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 d42b75f9c9bb3959b636904d48e6b477f6f399514ebcd7617cf9cd217b5e8278
MD5 9292e20e1c22464ad2502a6ebb50d558
BLAKE2b-256 c0c1d52ec7438e2131f98b334484669e4082bd4850b8f257ab7b90de0199b204

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.58-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.2.58-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 75d03f5f6dea540519fc024dcc7ad0174ce75839c40e128a96fdb3b6431489cb
MD5 84e016032f4806f803f9b0b925fc92da
BLAKE2b-256 e5e1048b09af6a8f60a50f0a8e13552b7498227f28b9047a02626c11252954c6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.58-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec04f1ff232937f9f41ede370ccbb7574e7b1451f820776fdde923c21df87d17
MD5 7981c194254d7f05db4345e63f72cc54
BLAKE2b-256 76f2543ae76924aacc58705681e7891cb8718f157576bfd217ff906a4492eb00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 112.6 kB
  • Tags: CPython 3.10, 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.2.58-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f5ada6a790d8dd07726e75afd459e9523be7c03f054c6b2e8ab8a50e061943ba
MD5 0338d3f37bc9d041016968cc0cc6c2d4
BLAKE2b-256 1fa0310baa99e608c3611cc1ba0eb28717a169c7d92f76ada2f3addd47866748

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp310-cp310-win32.whl
  • Upload date:
  • Size: 111.0 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.2.58-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 e0ff6f760364782bafbff0fa2fab51d6c667ecf4d5a6be5770c81267132449d4
MD5 2d870fe2225bd8127e3499d37e56578f
BLAKE2b-256 02742e4ca2076ea99980f1bc94ccd3b06e36ad8a09b2dd76800d5ad6b5c1e35c

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.58-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.2.58-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7b03056a045aa36dd00d4e3b29d507b32fddc6425c0dc5cb67633f2c0ad3bd01
MD5 7723fbd12aa31bbba99d98a498fbdb68
BLAKE2b-256 f9a3d5cf057ea54e9b11aa8dccbe583c1931e594e9a284db0ab49516da4ba927

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.58-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 353963b50cb276b37cb0b725953463a41cabc68ba74e49b84d460a44ee05ad27
MD5 33c38e91a92f57b6c24d6acabd6d0c41
BLAKE2b-256 28728ffb24bf7a08b38cf78b9a7af4bd3fd3c9043c023157d9001433ff5a543d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 112.8 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.2.58-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 e9c628f01a94be82e50f7234bc5e4bd6bb9bb50064b6bf158a487fec6042f240
MD5 645b4cba19d0a8a7fc9a9e4797561eb1
BLAKE2b-256 421b439ae70feb1f2286e334313dcd042e66af218bb0426b8bc007498adff598

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp39-cp39-win32.whl
  • Upload date:
  • Size: 111.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.2.58-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 0e0beddd5d3cf3215f61e8cd8166dd29efbb20768f00fd5dacd854025d07a562
MD5 c2dc211f9a98391e21e0faa71e45f616
BLAKE2b-256 c515e9149576e604f329daed8963fe3a3f0b5201ca9014898071128c44a2a218

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.58-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.2.58-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d74170e50326832dd06a1189a9c0854bcac9f811556abe15c809877da5c5dbd8
MD5 2c3c76e2718465019ed1686cd4f9cab0
BLAKE2b-256 ac47ffbde5d16c94181f368909b30392bed358dfb8c04b83137a424c274565d5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.58-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0c29b5dd620529fe048a396a2f2d7031f55ccdbccb85162a929edd1f2acf60ce
MD5 a0f0256e9af69dcec6408eeae8070319
BLAKE2b-256 58546ca3140e58cbb35f58e08e81ce06cad619b669ab455e47677c6be3367abf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 113.3 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.2.58-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a47ffcaf1491bb02032e8a191a735a55c8246f8ec52af6789bf511f07ec379ea
MD5 4869c699f6ae0a37ba2d410c54cf6439
BLAKE2b-256 9d4a2d42d23e9ca3f2c90eaf6a34261d7daa5375581fd8c0bfe99851f8a1bc80

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.2.58-cp38-cp38-win32.whl
  • Upload date:
  • Size: 111.5 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.2.58-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d2f4338d877b8d6b468697933bbee89c6df61b24628d7dfc1e586f36a2107d20
MD5 14ba5d26c18a6caf89deff3f73c734c1
BLAKE2b-256 3df2c95dfd52810bba66e09dd8fe92a8be329aaaebbf2ddf687c5e2e03daba82

See more details on using hashes here.

File details

Details for the file simple_equ-1.2.58-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.2.58-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0252c7acd328dcc757620d5c021b5111c1fc00586717f5e8da1c2677c0817798
MD5 6eb860c94458cb464a133678528461d9
BLAKE2b-256 706db4744aaccccfbe9c56dfdc9b463dcc88e699d9d22a7e8d4d422e2d57883b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.2.58-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6bcbe1175acfd72b6e09ac43f8d7c85fcb62eaebed2e06164b169e6f92107011
MD5 d731918e0bd658b2801c6bfe31a355da
BLAKE2b-256 22e5ead6f3fc1ee48fe77abf1a4c123127b9dad2a4c07f5cb1a1bd1502e5e781

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