Giter VIP home page Giter VIP logo

lpk_calculator's Introduction

LPK_Calculator

Motivation

création d'une calculatrice scientifique personnalisée, permettant les calculs arithmetiques simples, et des fonctions telle que le calcul de PGCD, PPCM PREMIER, FACTEURS PREMIERS, FACTORIEL, PARFAIT, SIN, COS, TG, les conversion entre les bases...

Installation

La facon la plus simple est de :

  • Télécharger le projet en cliquant sur le lien suivant https://github.com/samalien/LPK_Calculator/archive/master.zip
  • décompresser le fichier dans un dossier sur votre machine
  • créer un nouveau projet dans PyCharm
  • copier/coller, depuis le dossier comprssé, les fichiers main.py, fenetre.py et fonctions.py dans le dossier de votre projet
  • executer le projet

Travail a faire

lorsqu'on exécute le projet, l'interface graphique fonctionne correctement ainsi que les calculs arithmétiques simple mais lorsque qu'on utilise les fonctions l'afficheur affiche "Fonction Manquantes !" pour ajouter ces fonctions : ouvrez le fichier fonctions.py et ajouter le code de chacune des fonction exemple: PGCD, PPCM,... exemple dans le fichier fonctions.py on trouve

def calcul_carre(x):
    return "Fonction manquante !"

modifier le corps de la fonction puis tester.

le fichier Fonctions.py

c'est ce fichier que nous devons modifier pour ajouter les fonctions nécessairs aux fonctionnement de la calculatrice "LPK_Calculator"


def calcul_carre(x):
    return "Fonction manquante !"

def calcul_cube(x):
    return "Fonction manquante !"

def calcul_factoriel(x):
    return "Fonction manquante !"

def calcul_pgcd(x, y):
    return "Fonction manquante !"

def calcul_ppcm(a, b):
    return "Fonction manquante !"

def decompose(n):
    return "Fonction manquante !"


def calcul_premier(x):
    return "Fonction manquante !"

def calcul_parfait(x):
    return "Fonction manquante !"

def calcul_tg(x):
    return "Fonction manquante !"

def calcul_sin(x):
    return "Fonction manquante !"

def calcul_cos(x):
    return "Fonction manquante !"

def dec_bin(x):
    return "Fonction manquante !"

def bin_dec(x):
    return "Fonction manquante !"

def dec_oct(x):
    return "Fonction manquante !"

def oct_dec(x):
    return "Fonction manquante !"

def dec_hex(x):
    return "Fonction manquante !"

def hex_dec(x):
    return "Fonction manquante !"

def hex_bin(x):
    return "Fonction manquante !"

def oct_bin(x):
    return "Fonction manquante !"

def bin_hex(x):
    return "Fonction manquante !"

def bin_oct(x):
    return "Fonction manquante !"

def hex_oct(x):
    return "Fonction manquante !"
    
def oct_hex(x):
    return "Fonction manquante !"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.