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

Uploaded CPython 3.12Windows x86-64

simple_equ-1.4.4-cp312-cp312-win32.whl (114.7 kB view details)

Uploaded CPython 3.12Windows x86

simple_equ-1.4.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (351.5 kB view details)

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

simple_equ-1.4.4-cp312-cp312-macosx_11_0_arm64.whl (120.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

simple_equ-1.4.4-cp311-cp311-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.11Windows x86-64

simple_equ-1.4.4-cp311-cp311-win32.whl (115.9 kB view details)

Uploaded CPython 3.11Windows x86

simple_equ-1.4.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (308.9 kB view details)

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

simple_equ-1.4.4-cp311-cp311-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

simple_equ-1.4.4-cp310-cp310-win_amd64.whl (117.8 kB view details)

Uploaded CPython 3.10Windows x86-64

simple_equ-1.4.4-cp310-cp310-win32.whl (116.2 kB view details)

Uploaded CPython 3.10Windows x86

simple_equ-1.4.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (300.2 kB view details)

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

simple_equ-1.4.4-cp310-cp310-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

simple_equ-1.4.4-cp39-cp39-win_amd64.whl (117.9 kB view details)

Uploaded CPython 3.9Windows x86-64

simple_equ-1.4.4-cp39-cp39-win32.whl (116.3 kB view details)

Uploaded CPython 3.9Windows x86

simple_equ-1.4.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (299.2 kB view details)

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

simple_equ-1.4.4-cp39-cp39-macosx_11_0_arm64.whl (120.0 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

simple_equ-1.4.4-cp38-cp38-win_amd64.whl (118.5 kB view details)

Uploaded CPython 3.8Windows x86-64

simple_equ-1.4.4-cp38-cp38-win32.whl (116.9 kB view details)

Uploaded CPython 3.8Windows x86

simple_equ-1.4.4-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl (285.3 kB view details)

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

simple_equ-1.4.4-cp38-cp38-macosx_11_0_arm64.whl (120.5 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 117.5 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.4.4-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 dec96b47819d28e5a342ab4c2426028ef5a7519d88ac293bcb4c8db3fdcabd9a
MD5 9184c9af551f44d2ad0a267f189acfc1
BLAKE2b-256 2924928ae3524e9f42887823866448bb6ae8c8d7251638c482316b5a91b9c446

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp312-cp312-win32.whl
  • Upload date:
  • Size: 114.7 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.4.4-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 4a9f378826251aeea98a7fe459f721c5fdc6bf1cd5555fdc2bf37564c407e83c
MD5 3d56720b35312508278826be42827d87
BLAKE2b-256 1ed1d88aea79ad06bd645f7db7d1142f127fe551b27d63e58aafde9523ef8d9f

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.4-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.4.4-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cfdfee143552c8c9e37d61d0021c636d1c1fef4c6d155dfeccf6853deba4fa1f
MD5 992639b4e93c2b70bc388eabbe99b384
BLAKE2b-256 374fc437658ed930bba62614b0fb61a02c22e2bfcbddbbced01fb07557ae4602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.4-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 91503f5c13cebc7dca202f8b7f6f637ac1bcae04fd85f8f8f4c0974db7ae5754
MD5 7d9311c4d145f4f52619fcf1d60ddd2a
BLAKE2b-256 29fb0408b4997687699f6617591bd934f0edc4da9c9f011d5a7c091a0bb49d0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.4-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 712fbd75c7182f0bb67a117563f1d2256f17d5fa16a480ba1df1416ee05f6c7f
MD5 a030ec0e3a5702568d2e5d67230230f5
BLAKE2b-256 6f1cc2fc42728b9066a1412ca3ffba4af2f8e1d458dfe021e4d9e6332c93fd1c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp311-cp311-win32.whl
  • Upload date:
  • Size: 115.9 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.4.4-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 a41760fe516c40b0d1d39211430a4667ad9d33aabac9bf96ed9e0d1208872bb3
MD5 15dd7fa52dcc26fdeb5cd83cbe6065ae
BLAKE2b-256 ea4635d5e59356786d319c10534605c6ba442daab833de5c412ce637e3b1ec43

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.4-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.4.4-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 550ba4b81d0acc5c11ec3d5c518c9c09446620c1a4a3dd227bc3a5c444b09e26
MD5 43f6ae298f2505b235ef69de1146ba0e
BLAKE2b-256 143d4a43d923723f76eb2a4c6a43a99a950e049e175b639e0a8d468ba4015485

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.4-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2c33e7d1dacb8ec3d728868b7910d3c98a69d3d97545c1f966befddf952727a4
MD5 e8f0cc792553b1260c3c96bfe61732db
BLAKE2b-256 5aa7a722fb7f5902276ecaa5184b40fc1a7ecedc1670b00156c0f7e369fa1c97

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 117.8 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.4.4-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 a8dd401de6f35b4cec049d3781bf0641838cfc2ead3e096969f10713c9541864
MD5 504d1f4565a6baa7c4d63b3b2fc5dffc
BLAKE2b-256 bdb102dec819b1056a3ad4829936cca7ec9048d2fc0c05695e29ef52d3c17162

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp310-cp310-win32.whl
  • Upload date:
  • Size: 116.2 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.4.4-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 4fb82e22a820cc80c1e9668947627b3ab24c4d558ddbbacc97fcde7ec6876d98
MD5 03b81160107eb5e7f76aa81b7614b2a3
BLAKE2b-256 530400b75c04c8c4fd48f66b9c326c39ff7907edfcda153e78754547ecea3373

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.4-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.4.4-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 50627819e7a2397ddca8f007a78f8734ba8e724154d65a2927521b258fc7a978
MD5 cafdcdc70dc32b0b37d7b64504006168
BLAKE2b-256 e9f64a1bcc17dfb6be249ffd9500b90bc9c88947bb808f397d7d61558ca406ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.4-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 af1778966073d2fccfc3b2c4f9a538990b5ef87f70dcf1e18588f3648df6b501
MD5 34ec5da34a888e63b6fb6843f7f9f43a
BLAKE2b-256 c3e4e6e8ccce257eeaa49b99d9edb9153022078eea03c659cb1050509c3e64b1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 117.9 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.4.4-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7e5ef2a1ba25ef6025453cb9f74a574bee202198bbd424b9c8ceb0af66d7e17f
MD5 79f02b4e3d2a3c09b25eef5a29fb79b2
BLAKE2b-256 f4e627d83cf21d074bdbd55ef2099bb1fd8bb6b199c33d1b45a62d2538972d41

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp39-cp39-win32.whl
  • Upload date:
  • Size: 116.3 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.4.4-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 47310c6943a78371aaf7f9a4a64b8457b2fe259850ef3ad7fd22681e7e41814a
MD5 782eca442f6e1bb0cf99d736debfc7a9
BLAKE2b-256 0ff4d4791baa7f84033690ac31da22a54421924a57802bca08a362b64b846541

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.4-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.4.4-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 acd480d37e18efae9c9f5b211ad8535d763bf09a7fb85bedb38809a2d4376402
MD5 4e01fec80f168b836200a5108f646626
BLAKE2b-256 a21b464533e0d378274db3d4f9acfb9bed1b68ef3052cf982a19b7e6cb14dc08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.4-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc59fc66d9081c8488127bc7af0cddb52df4dff12f348bfb50a041805108d868
MD5 cf7a83b7c4e591d0e5086d04b28aaa3d
BLAKE2b-256 145eb9d097efee04a31b4271e723008802681ae6565c9ff3b1b1bba41df981d1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 118.5 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.4.4-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 aad609a6867be8f0f75d8695ac86295503919f142307566427b02513c02ef05e
MD5 53db7f523f5cf7ca4ed937ae7194935f
BLAKE2b-256 ea9ac33b3d95f010a9642d923ede59dd70bbd123135abcc76d0aa608ac6fdf88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.4.4-cp38-cp38-win32.whl
  • Upload date:
  • Size: 116.9 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.4.4-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 9e8815ae16d5d03f2cd901eec4045895aa0de24c19641dc3a303fbb85455ea73
MD5 f6eaf9d34008f9dac9f94531a4bf076b
BLAKE2b-256 961150989b25b59a612bf54807a5c5e466d0b6f3c344fe1fac9de5278926dd33

See more details on using hashes here.

File details

Details for the file simple_equ-1.4.4-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.4.4-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 3ad9370ab189bd0972270957f3dfd940a53f7416b5f6c1cc7ee80a4de8068688
MD5 14764a60c0b319ab8e0ce453c6f43c5f
BLAKE2b-256 137377aaf3a3db420e831942b22fe0867a3a90f6807407bf354c546f9a4733ef

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.4.4-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 74bf26302ca5d523d3c6b0f1ab2b938917d21f3086ad30daba2034d03cf554dc
MD5 81dc6140824b79fd2aba4e199a397366
BLAKE2b-256 ff9445aa965239c993253ec6aa1a1dfc15f4fad76324b0b2fdab082b034f69fc

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