Coder Social home page Coder Social logo

gi-i-ph-ng-tr-nh-b-c-2's Introduction

gi-i-ph-ng-tr-nh-b-c-2

while loop: x= input ( " MODE = ") if x== "1" : # Phương trình bậc 2 a,b,c= float( input ( "a : ")),float( input ( "b : ")),float( input ("c : ")) d= ((b**2)-4ac) if d < 0 : print ( " vô nghiệm " ) if d== 0 : x = ((-b+(d)**0.5)/(2a)) print ("x=",x) if d> 0 : x1 = ((-b+(d)**0.5)/(2a)) x2 = ((-b-(d)**0.5)/(2a)) print ("x1=",x1) print ("x2=",x2) elif x== "2" : #khổ dâm hình không gian print ( " A ") xA,yA,zA= float( input ( "xA : ")),float( input ( "yA : ")),float(input("zA : ")) print ( " B ") xB,yB,zB= float( input ( "xB : ")),float( input ( "yB : ")),float(input("zB : ")) print ( " C ") xC,yC,zC= float( input ( "xC : ")),float( input ( "yC : ")),float(input("zC : ")) print ( " D ") xD,yD,zD= float( input ( "xD : ")),float( input ( "yD : ")),float(input("zD : ")) xAB,yAB,zAB,xAC,yAC,zAC,xAD,yAD,zAD= (xB-xA),(yB-yA),(zB-zA),(xC-xA),(yC-yA),(zC-zA),(xD-xA),(yD-yA),(zD-zA) x1 = (yABzAC-yACzAB)xAD x2 = (zABxAC-xABzAC)yAD x3 = (xAByAC-xACyAB)zAD VABCD= (1/6)abs(x1+x2+x3) print ("VABCD=",VABCD) elif x== "3" : # 2 phuong trinh 2 an a1,b1,c1= float( input ( "a1 : ")),float( input ( "b1 : ")),float(input("c1 : ")) a2,b2,c2= float( input ( "a2 : ")),float( input ( "b2 : ")),float(input("c2 : ")) x = ((c1b2-c2b1)/(a1b2-b1a2)) y = ((c1a2-a1c2)/(b1a2-a1*b2)) print ("x=",x) print ("y=",y) elif x== "off" : loop = False

gi-i-ph-ng-tr-nh-b-c-2's People

Contributors

ilndht avatar

Watchers

 avatar

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.