π
<-

plz work


File hierarchy

 Downloads
 Files created online(33945)
 TI-Nspire
(22543)

 nCreator(4711)

DownloadTélécharger


LicenceLicense : Non spécifiée / IncluseUnspecified / Included

 TéléchargerDownload

Actions



Vote :

ScreenshotAperçu


Informations

Catégorie :Category: nCreator TI-Nspire
Auteur Author: kboiiii
Type : Classeur 3.0.1
Page(s) : 1
Taille Size: 3.49 Ko KB
Mis en ligne Uploaded: 18/09/2025 - 20:23:18
Uploadeur Uploader: kboiiii (Profil)
Téléchargements Downloads: 1
Visibilité Visibility: Archive publique
Shortlink : https://tipla.net/a4848197

Description 

Fichier Nspire généré sur TI-Planet.org.

Compatible OS 3.0 et ultérieurs.

<<
import math def get_vector_input(vector_name):     print("--- Vector {} ---".format(vector_name))     while True:         try:             x = float(input("Enter x: "))             y = float(input("Enter y: "))             z = float(input("Enter z: "))             return [x, y, z]         except ValueError:             print("Error: Numbers only.") def run_geometry_menu():     while True:         print("--- GEOMETRY ---")         print("1. Circle")         print("2. Sphere")         print("3. Cylinder")         print("4. Back")         choice = input("Select: ")         if choice == '1':             try:                 r = float(input("Radius: "))                 area = math.pi * r**2                 perimeter = 2 * math.pi * r                 print("Area = {}".format(area))                 print("Perimeter = {}".format(perimeter))             except ValueError:                 print("Error")         elif choice == '2':             try:                 r = float(input("Radius: "))                 volume = (4.0/3.0) * math.pi * r**3                 surface_area = 4 * math.pi * r**2                 print("Volume = {}".format(volume))                 print("Surface Area = {}".format(surface_area))             except ValueError:                 print("Error")         elif choice == '3':             try:                 r = float(input("Radius: "))                 h = float(input("Height: "))                 volume = math.pi * r**2 * h                 surface_area = (2*math.pi*r*h) + (2*math.pi*r**2)                 print("Volume = {}".format(volume))                 print("Surface Area = {}".format(surface_area))             except ValueError:                 print("Error")         elif choice == '4':             break         else:             print("Invalid choice")         input("Press Enter") def calc_magnitude():     a = get_vector_input("A")     mag = math.sqrt(a[0]**2 + a[1]**2 + a[2]**2)     print("Magnitude = {}".format(mag))     if mag != 0:         uv = [a[0]/mag, a[1]/mag, a[2]/mag]         print("Unit Vector = <{:.4f}, {:.4f}, {:.4f}>".format(uv[0], uv[1], uv[2])) def calc_dot_product():     a = get_vector_input("A")     b = get_vector_input("B")     dot_prod = (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2])     print("Dot Product = {}".format(dot_prod)) def calc_cross_product():     a = get_vector_input("A")     b = get_vector_input("B")     x = (a[1]*b[2]) - (a[2]*b[1])     y = (a[2]*b[0]) - (a[0]*b[2])     z = (a[0]*b[1]) - (a[1]*b[0])     print("Cross Product = <{}, {}, {}>".format(x, y, z)) def calc_cross_product_magnitude():     a = get_vector_input("A")     b = get_vector_input("B")     x = (a[1]*b[2]) - (a[2]*b[1])     y = (a[2]*b[0]) - (a[0]*b[2])     z = (a[0]*b[1]) - (a[1]*b[0])     mag = math.sqrt(x**2 + y**2 + z**2)     print("Magnitude = {}".format(mag)) def calc_angle_between():     a = get_vector_input("A")     b = get_vector_input("B")     dot = (a[0]*b[0]) + (a[1]*b[1]) + (a[2]*b[2])     mag_a = math.sqrt(a[0]**2 + a[1]**2 + a[2]**2)     mag_b = math.sqrt(b[0]**2 + b[1]**2 + b[2]**2)     if mag_a == 0 or mag_b == 0:         print("Error: Zero vector")     else:         cos_t = dot / (mag_a * mag_b)         if cos_t > 1.0: cos_t = 1.0         if cos_t < -1.0: cos_t = -1.0         rad = math.acos(cos_t)         deg = math.degrees(rad)         print("Radians = {}".format(rad))         print("Degrees = {}".format(deg)) def solve_quadratic():     print("ax^2+bx+c=0")     try:         a = float(input("a: "))         b = float(input("b: "))         c = float(input("c: "))         d = b**2 - 4*a*c         if d >= 0:             x1 = (-b + math.sqrt(d)) / (2*a)             x2 = (-b - math.sqrt(d)) / (2*a)             print("x1 = {}, x2 = {}".format(x1, x2))         else:             rp = -b / (2*a)             ip = math.sqrt(-d) / (2*a)             print("x1 = {} + {}i".format(rp, ip))             print("x2 = {} - {}i".format(rp, ip))     except ValueError:         print("Error") while True:     print("--- MENU ---")     print("1. Magnitude")     print("2. Dot Product")     print("3. Cross Product")     print("4. Cross Mag")     print("5. Angle Between")     print("6. Quadratic")     print("7. Geometry")     print("8. Exit")     choice = input("Select: ")     if choice == '1':         calc_magnitude()     elif choice == '2':         calc_dot_product()     elif choice == '3':         calc_cross_product()     elif choice == '4':         calc_cross_product_magnitude()     elif choice == '5':         calc_angle_between()     elif choice == '6':         solve_quadratic()     elif choice == '7':         run_geometry_menu()     elif choice == '8':         break     else:         print("Invalid choice")     input("Press Enter") Made with nCreator - tiplanet.org
>>

-
Search
-
Social TI-Planet
-
Featured topics
Ndless for CX 4.5.5 / CX II 6.2.0
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
12345
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
5819 utilisateurs:
>5787 invités
>23 membres
>9 robots
Record simultané (sur 6 mois):
43991 utilisateurs (le 10/09/2025)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)