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

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12Windows x86

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

Uploaded CPython 3.12macOS 11.0+ ARM64

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

Uploaded CPython 3.11Windows x86-64

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

Uploaded CPython 3.11Windows x86

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

Uploaded CPython 3.11macOS 11.0+ ARM64

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

Uploaded CPython 3.10Windows x86-64

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

Uploaded CPython 3.10Windows x86

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

Uploaded CPython 3.10macOS 11.0+ ARM64

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

Uploaded CPython 3.9Windows x86-64

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

Uploaded CPython 3.9Windows x86

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

Uploaded CPython 3.9macOS 11.0+ ARM64

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

Uploaded CPython 3.8Windows x86-64

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

Uploaded CPython 3.8Windows x86

simple_equ-1.3.724-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.724-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.724-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 741e90227fb423c56d881e1fd9ea8d4d2b029086b2acbe8ad4bc77e6ef74bc51
MD5 78aaf087a1aac8d5a746291f8555ad73
BLAKE2b-256 7d2e397df6ca4e2b9a8847d194146bfc7805a46a2357d70aa14862c17b2f0dd8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 a1f7a618d67ee3719c958b1c65a2f23211be85f38aa1da4bf06912592a63f276
MD5 67821f633bf0bd7a453dad902eeb6749
BLAKE2b-256 a6f5e944d3a498d7f583018d22e7042985f2e1e0fe22b69c4f63995b96e85f63

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.724-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.724-cp312-cp312-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 aa15a47c78e5a4bb126cdeef6eced67432148890b608af47a243870aeae1d58d
MD5 2e7e822c7faf68203d6be8555e7dbe0b
BLAKE2b-256 a9cb2045cbcfc248a0b844a38f278f91b07e65939e26308df2a9ec2eca531aad

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a440135c8ad06b481ef24fa782df290dd8923de2775ce2cd05224f13d63a5a5
MD5 e7e82cf1ad8674773eac6ca2f579be70
BLAKE2b-256 2b71bac42cec49fb7f3dbbf94a4f12a2472f25f1280a7c7b7719c6aca1e19f41

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 483631c896e9954383201506cdc5cbfbd14a732d1bc34871f072cb0b67bdeee8
MD5 45a41ee8673fa2b8a9c0a3133de0e5ea
BLAKE2b-256 1d629544e9323edd74692349154d40a833336863ac85e064e4ac5427ec0868e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 33c68860341e7b32271623959ff712f1da94cf42741baca0d240b6a52bb16e4a
MD5 1c7505a48a6621fd3b3b9e2d10991df0
BLAKE2b-256 a9d22e7a8b660cf24d0e34759541365ec9641dba166d1982d72d98ac55deddba

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.724-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.724-cp311-cp311-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 d0e43674528f08752ce236ea56d82c11e1a75fe23a0d615ede1f020cf4510802
MD5 4a547b83f81f916f99fbfd6a24d8de48
BLAKE2b-256 433749440d8ee2dfd8ecebdf708d8a4adc7474488ed2bf1fb27815ff8084ecfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e3ab341b52b341ebd3e479b45915ecc36e164376ffa262018fd4eb82d046da42
MD5 4368f297b0c806851ebe42b9898fdcfc
BLAKE2b-256 66affc589384aba457c1ac7fa15802fca73e268fb70e33a6977c201a261c2edd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 26c6704c1e90365ba02a162a4b25060823aef7f52a4ddb56066582d72c00344d
MD5 38880e151145101dad6c86fb8f630903
BLAKE2b-256 c33828e8455cbd5d2dcc4df07b91c7121078931d88c4c36eef0147a7d9f2a9de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 2f3474f9b687f8ad2fc6ce2fc243baee03120842fb85f796345e7c41f4cc935f
MD5 d4076b9c5bf1e1acd68512a35b5206d5
BLAKE2b-256 121089a32b07b5ebb9e11acb62acbe4a2808aaef685804fbffbb4907dd16665b

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.724-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.724-cp310-cp310-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 0d16bc895323b5005801fedd7f995b0684a74540e1d60dd6414d35bd618f72bc
MD5 0169f5aee03b7f95eb87c0db61f51b88
BLAKE2b-256 cd73ec09595264f4687c1ad05ee691db4d934991fc91206c5df61cef50dfcb72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 51e7f9e23ee3546349385c09009e34c707334681a2a6d221205117a900bd5727
MD5 de03a63980c1a582258fae44f33d8f74
BLAKE2b-256 bac00238faf98a8fd32717b5c01f77c743d639f731d556fb4bf85101cd0b682e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 3fb0e88478a4163c5fd8c56b8d51425a18db8f31649d094dfb995d412063f1f3
MD5 436b4806507b3ad2c72d9682bea99506
BLAKE2b-256 34ac8cfea29fce3b0d557f07a90e3a0aae90d46677e4a6903090d58b94816277

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 cc38e9784fc390088126951e0fa66ccd18b1f0c690a7e215af2c49c8337946d0
MD5 ab1c7638405a6bdc552d9312a3c4669c
BLAKE2b-256 a7b21c68a548d2acd6540ea7c4a192ec4ad3b1fca5315691a4375611067018a0

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.724-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.724-cp39-cp39-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 90fd0585811b32cb785986f051be81fda90d02e3d79e3115a0569a21dc61c7a6
MD5 ae43667bcd12e4fde42d7246f3fbe9e0
BLAKE2b-256 6dc6972ad45472799d59d5e3ac4f9c017568023e62258841071ea426c490865d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 46d902db179ffc8e0cd091708c3fa5cee883bf7d848314bcf7ce7f58397fe703
MD5 559dcb4a6df3bf15ab616ceaf23548e3
BLAKE2b-256 85259ecfa52c3cda8292313d716d44aff1adb7c2ece37d8b08a510cd8c43647e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 2294d6ac1b6d258893901a594ada4e53f3660026ddcf0851196a0d8d65875ef7
MD5 f9ef8bdf83656b6df7cc6fdfa862e857
BLAKE2b-256 053a34550309f13c1566e30381f3a2d220f2281c9873a5887a0db1e49594dda9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simple_equ-1.3.724-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.724-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 86081fe471ebe786948522deb7963aa88f75fc2d7ac9b79456244fad7e0015f7
MD5 6d1a7f775fe52447c7bef81b460c906b
BLAKE2b-256 cc2b24acafbddebb219639be8da1d4c3947a7b9a10ab8f20b29b84d5dc39f173

See more details on using hashes here.

File details

Details for the file simple_equ-1.3.724-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.724-cp38-cp38-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl
Algorithm Hash digest
SHA256 731bd0f3a85dc5cbdb2ca2bc90377153ac92bf85cb8fed642593af14a1dc7283
MD5 d0a440cb7ece146a617ceb392583ea43
BLAKE2b-256 6476821f83453c7b395725a4097649c41061632438cf88041445421e7abfe122

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_equ-1.3.724-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9e19d27eed0a38d31dde6d22a809061550ea84719123012fca91d1e1ea8cd671
MD5 20c53430fd8dabb9d48f73c9f58be02b
BLAKE2b-256 92229b01445fecb968ea16460bddf4ec9e5ce0f13c43e70394c631d051c13324

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