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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.325-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.325-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.325-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 024705dc8dc524a00f6ef64fcf0d9ff03702554c6fc0c33dfc496a7127e5c2ce
MD5 4eb85f4cb9de3094c6e57aa11045bf2a
BLAKE2b-256 6b4e749bb30e1ce4514091b1e18c8698d880e77802a092bd30f82c902d2c9850

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 82b681e552ff03e1084c82fca9510002466b37dc861f43d88c8968dbbb2399c3
MD5 2514d3dfea225731161c7c99bada6298
BLAKE2b-256 2dfaa1250226b09cbf2cdf85e5e402181117e3da3f206934b165ca160b5912a6

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.325-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.325-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 cba85004301e1ea97acc082fbe5ad42a1aa48c1796088a171a8bbdc0436a0a13
MD5 1ff881eeac49f873d74560566ed57a1f
BLAKE2b-256 46d1321e29a42be6d5353eb87302b61391a1ffce6f63a84f7cc868a875d8744f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b55d00bb504fb4e5a031dc20e3ac1bacc7a853ae6924d2a6cad1c66e66f1c63f
MD5 05f0b73fcc6655acaeca57ee89bfbce5
BLAKE2b-256 e671f9d171687637b8011c0288f518bfbf5d92bf424e5ba0bd38d5838e2620fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e5dfcd04c6f8ec918c5974b965bbfdf58ffd5b2c0227f42ddd02b3f46a6a380
MD5 b5152ec9993642b3a00cb30433c6cb49
BLAKE2b-256 775bb0eba99eed3e1c8a613330f08441d6861d043be821c1d1d9abc2374eb09a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 1ae1af07d5d918c6339f6b35c219c32d048789bb0e3f3f7ef530c3049679390c
MD5 22200d2f32c4ab39fddefee027bbe47c
BLAKE2b-256 afd7250523cf52e7ead23bc0039eb8e582b7f996393b3dfd49eec5fecee3ab7f

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.325-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.325-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 7351620ab3c63cb4b48970132993567b538ca5c5b53ba5bdaaaac386bb85b9a7
MD5 5efa3855e4c4ba5bc032e739db7d92a5
BLAKE2b-256 feceff98a8d28796b6ce941c44ee567c6015257e7b3ce6cda62e536739e9108d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33ecf5af880135dc6f1041573ae1da6105bdff3864e454a5416d8aa6fc70a5b6
MD5 52c66897cc221f0a48fd58ce841b9076
BLAKE2b-256 f0d422b04b199c25308c29330d9fdc8f3788a87cc5091f59a1399c3136c3c204

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 ba8d8d116c4f8bdcafed761fe8b6021321962477b489ad85058552a30053a241
MD5 ba71c2265d6c4cd90631c65a67c25885
BLAKE2b-256 c568768ab0eac2ce38cac325b9b1083a3fc7a643cc1dc227e5e59a15c78aeffd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8ff3f7a1d2e05af23edea007bb35e95f21deb324dffaf4c6ad6e1d46195ad5c3
MD5 73b057318d3f6fc28b2518b1b124aec1
BLAKE2b-256 8a954f92d661b23b680fe0ffe987e2943fe41553cc4f7af486ff71e03ce41f76

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.325-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.325-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 73fbccc120aa551049f13be98f4b59e22538d49e7e805f17e4506ec3c1cbae2a
MD5 2d217ad30d8b93e439d289753ebfb9af
BLAKE2b-256 7e4b432f797f7eb1c9b9c7001df594d4fb18753a833186cc062f65a6d69d75e8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 602128251542d6a4bfa913155b139c75136c3bdcb35da96de909433904477e74
MD5 afa829725d4c0dfc71597b3ee1cde144
BLAKE2b-256 9a195a87688550a72532b90236f95efb3e5647a8351eec0c566057af980c9e8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 7cc97a385598861f39d016b82b893f3b700eeef7c7ae138dcc52b702369d049a
MD5 d425fdcc4455be2857dd966dc39a80f0
BLAKE2b-256 db3297648a13dd541529e9f586654c5fcc13e33a0f7204cf7e362edbb233cb60

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 e014ef85c5b9383f0fbfb607b6845ea1b5515038d2c05cf8cfd90e7f70c95dbc
MD5 305115a6845beba0cf762bc7460cb023
BLAKE2b-256 44099d610f7fb55d582b6ac34ccfe947d0e5d37b483bd7f00eee4f72718f87be

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.325-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.325-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 71ae6b2adbc36f37c5a65465b651ec2e96025aa7dd009f880de1e744291ada33
MD5 20acddad29dc493cb9c8115e5d3e2165
BLAKE2b-256 ffa96f5d98d5cdfedfbbe3c8ce9dc73987d6739bddd0c00139df572422702cb9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 18c498aae1ee83f70279e6a59d163e05fba8711d0e04e92d222ab2ff27025766
MD5 f9ecd7f1d4de2df540ae26e897f58bd0
BLAKE2b-256 d4ef5b3cf18f703bf5ce874270e043ba018db7f4123f3aad75bdda594c5c19b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 d956358299e08f2cfdbe5c626a149c381d9da012c4eea38988d83b4b0589c089
MD5 c0de9271d46529c39f2d53759786628b
BLAKE2b-256 80cea5047256d4c151c1fc60c97eea15d1d9c06f535495aba047a8cfb1233b57

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.325-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.325-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 42174d0ea3ae37147b96680e50a95b4614fd73a411162e7e83b0ffeff068efc3
MD5 aa413d02d6f5686f1fb00fbb5de2bdfc
BLAKE2b-256 289a6419c2ecdb2d2f678eac260a35d721a6c040bb22e20e8eeb799d38388b4c

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.325-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.325-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 c95f78d91575387e0ad5b7bb253b6e2d1dcb624df9bcfb6ea03984d43d09ccdb
MD5 2ecc1ab77bd26da3e81b056e37f952ed
BLAKE2b-256 8e95bb1c30a80656bab796225d0cc16a4b5518f8b20071524fdf648d4caba318

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.325-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6788027e44cb70a5a4052868e25676b3f4b7bf4f087bfab346a875333f57b678
MD5 a444a6f862adfaf0afcfb7ed0a3b5a88
BLAKE2b-256 1a2828e20a63c866d4081438d21e599a2df021bfa0df15f9b131c8d89815e02c

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