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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

simple_equ-1.3.151-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.151-cp312-cp312-macosx_11_0_arm64.whl (119.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

simple_equ-1.3.151-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.151-cp311-cp311-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

simple_equ-1.3.151-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.151-cp310-cp310-macosx_11_0_arm64.whl (119.6 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

simple_equ-1.3.151-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.151-cp39-cp39-macosx_11_0_arm64.whl (119.8 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.151-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.151-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.151-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 b0834a4e78a9fbe2cda3de9d6185ec80a37d8c950bffdc6d4102eca817edef50
MD5 607d80ac530a15e48b98b9de5afadfef
BLAKE2b-256 0a7adcdb884489d5cab3b2ebd5a5159edac0bc29acba06b88feba3c593b34303

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 8111f01e04aa1c7cba699628d1c981a2de39206a214254676f9036d5f7f5c456
MD5 25db8c700156c5a129678cd00da09cd1
BLAKE2b-256 29278be1f6c3a01e7b8ffd536f5140ed87218e78921a3e0f229790c91c32cc6c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.151-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.151-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d9b30dfa31034a7b94f586a34f137aeb1f91753b193ffbc689834840a221a1db
MD5 5ba20e9bcb5bbd8f0cd2827a6ed02066
BLAKE2b-256 1130fcb95ba4667a2b323f75b25b97910fbe0a6411abd9fc2b83a1803b4aeed2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f9c4836e3769101e3ab3904137c36d44d5af1cd51a58dbb8ad0b8168300552ff
MD5 1e4fcfd5fb75da7e3985d530d66948ad
BLAKE2b-256 7b2755aae28af86d12a8c4084477ad613caa27750fa4602698bc7de2addc9139

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ce5847c18f0e237a81233c475952f830df3c4e008c4c1dfa63e13b01e358e4fe
MD5 eb641ca35d384dac48edcbdeab897124
BLAKE2b-256 91a79c7bbe35c492a2396cf3ae101c97907f030be8076a7a34ddf10b8b686ff3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 34062665969e18b968e47e40174807b42c6a16f2af901b739ac934267ecf5550
MD5 bbd1552e600cc85e838a37237bd6e1f8
BLAKE2b-256 bc27d32f7447e11be0009cba2ce7ba70925e376a7dfbf20a9194d3b952a9aa10

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.151-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.151-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a9632f66f53f94339122f1966bf03a22044097d714d0ee81e712537e3772f11c
MD5 0584ed4738434f56d0c64838dd2cbf97
BLAKE2b-256 297c9ffec2e386944e5fe7232c7d02d69f7d623ed3b3b09af79a65066a95a62b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 277272848cc91e2b386c38d85907c1189e4b1244b27aca20a9b995ed17179538
MD5 771d653e4d1088c1be591edd809aee3c
BLAKE2b-256 f8afc1269c01f65bdbaad6c555ea046453b77b76a654fede0d76381c83357120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 9f19a9c2aff0a1e9c0c70532046dd6d663bbc567942344ba7f1839b76ada9055
MD5 a0bbf02b7c099ce4edc3464c432bdde5
BLAKE2b-256 6fff44077f014471645c8b56dd081720d6488e29a9153a29c6b2fbe9a2fbc858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 554e36c373eb1c5800b226d2c976f0c9b7482ac96e4be92b3048c1ca57678ebb
MD5 12d582e92ea8c5d53b00f07f56a36442
BLAKE2b-256 834a77cadc2a4d430a827f87bcae67e5cca118fc2b5ff47cc35defc0bc057156

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.151-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.151-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 ccbca43c38e4a96aaa6eae19eb228cfff2885451096652a95683edcd67ac2687
MD5 b344dadf6a48f45b122939faa853dce0
BLAKE2b-256 5be5985358b8920e2eea3cd9d43c2a633211d058e9709c1fe962c62db104dd06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5f12d0687a2f876e6ce6ec2cbeedf91d67431de02b508b582e84292e31a6f3c2
MD5 887f274da7d7b226510285ec990f3a41
BLAKE2b-256 382ccff2763285acbfde958e26e3908c3eed46327e061556bb79e64017fe6514

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 c3ab41cd347678337fcf23765b6e448f59e2abdcb6109fc95d2acafa52ea1aa3
MD5 661c328333f450b9248c43db37e0ef5b
BLAKE2b-256 a59f2c3ae898df4d6bcb6ce58b5d47a0850ac53be03553ecd25366eb4c66f4ec

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 4e79f9ae97fb7e1027b8366bbc62ec19e85183c281f7e3af792c02ace8c807cd
MD5 a156155c4c0bfb96e2b319b48c8db577
BLAKE2b-256 8a5ed8a6106ec6742b1756d6928b9c3a96f0e0d4ca79e6539f6511f0ac5fe703

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.151-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.151-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 a04117d451f6ffc5e68b8d77e826cb32ac5f0adac852cf306042b4ffc8b23a7f
MD5 04587bbeb7b5a7f51ee3b2fb46a8ef1d
BLAKE2b-256 57fe546fb4ba284ba8cd9c19581deae539eda5c6d724490be0b27aa889c75e65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ec685d8e22f341fb92f2cd5a2178202a0ae4c4ca2db91204b08514994e6ad94a
MD5 c224639dcb1720fb3ba0b28e28bbe413
BLAKE2b-256 c265d12a55a309e604928dd1d4e8784ff6ca532a64e72d644db49a0b3d0bcd72

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 9ebaa0e4a748944f9b9558ca0b946e9a5319bb2cd302c8761c3260460c24de6b
MD5 983ab49912f7d009f486025acf38d889
BLAKE2b-256 20bc4f935a1195787a2f85690c8853d8f324958e3075af573244a7c0ad457214

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.151-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.151-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f9c440670c256c4f5a5a811cbfa9060d4e4ddce60535af928512744a39e27d47
MD5 18c39a18e3d8c49243c334e56d3ec172
BLAKE2b-256 31b98161377f18d6f30861b1fe111b6e529d1c9423ca504c10fce058d0ccc3f6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.151-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.151-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 f12f7f6298c9423c4b330e1bbe15d4c34d16ce616aec2472434708691a1a7e05
MD5 c6d2b73a8a151e97b9a979e7e745b644
BLAKE2b-256 bc7dcb065abc2c3461d4d7b376a782147180303d6cedfc681ea1102943c9eb73

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.151-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e4c2fc91460242f1dd3511cfceb92703205cb404655b148f4e1c58a591b248e3
MD5 e888d2aaf58571e4d70699c33361212c
BLAKE2b-256 e29de8d8eaf1194c52c09d9bb04e77e3b5eecd05e5285b18aa1d8398cec8b596

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