Azumaril$ Posted March 1, 2011 Share Posted March 1, 2011 Pedia telos panton esto oti exw treis metablites x,y,b kserw gw me x=5 y =25 . kai 8elw to y na ine iso me to x sin tin tetragoniki riza tou 25 Pws ginete omos na valo tin tetragoniki riza? xerw poli ine 5 apla 8elo to geniko pos tha ine. dld b= x+ti edw? ... euxaristo Quote Link to comment Share on other sites More sharing options...
Hax0r Posted March 1, 2011 Share Posted March 1, 2011 Η συνάρτηση που ψάχνεις είναι η sqrt(y); συντάσσεται ως Math.sqrt(y); Όμως, δεν ξέρω πως θα εισάγεις την βιβλιοθήκη Math ή αν χρειάζεται να την εισάγεις. Quote Link to comment Share on other sites More sharing options...
Azumaril$ Posted March 1, 2011 Author Share Posted March 1, 2011 dld pos tha ine ?:/ b= x + Math.sqrt(y) ? Quote Link to comment Share on other sites More sharing options...
Hax0r Posted March 1, 2011 Share Posted March 1, 2011 Ναι. Και καλό είναι να βάζεις παρενθέσεις σε μαθηματικές εκφράσεις: b = (x + Math.sqrt(y)); Quote Link to comment Share on other sites More sharing options...
Azumaril$ Posted March 1, 2011 Author Share Posted March 1, 2011 Ναι. Και καλό είναι να βάζεις παρενθέσεις σε μαθηματικές εκφράσεις: b = (x + Math.sqrt(y)); prepei na katalava...min ginei lock gt mporei na xriasto help. anyway euxaristo poli :P Quote Link to comment Share on other sites More sharing options...
Azumaril$ Posted March 1, 2011 Author Share Posted March 1, 2011 κατι αλο τορα enas ari8mos ipsomenos sto tetragono pos ine? gia paradigma exoume a.. pos grafete a ipsomenos sto tetragono? egw nomiza ine etc: a^2 ala telika den ine Quote Link to comment Share on other sites More sharing options...
Hax0r Posted March 2, 2011 Share Posted March 2, 2011 Math.pow(βάση,εκθέτης) π.χ θέλω το 33: Math.pow(3,3) π.χ θέλω το x2: Math.pow(x,2) ή x*x Βέβαια, για να εξασκηθείς, θα μπορούσες να φτιάξεις μόνος σου τις συναρτήσεις από το να τις πάρεις έτοιμες. Quote Link to comment Share on other sites More sharing options...
Blane Posted March 2, 2011 Share Posted March 2, 2011 Άμα γράφεις σε Java όπως κατάλαβα, μπορείς να δεις όλα όσα σου προσφέρει η βιβλιοθήκη μαθηματικών: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/Math.html Quote Link to comment Share on other sites More sharing options...
Azumaril$ Posted March 2, 2011 Author Share Posted March 2, 2011 Math.pow(βάση,εκθέτης) π.χ θέλω το 33: Math.pow(3,3) π.χ θέλω το x2: Math.pow(x,2) ή x*x Βέβαια, για να εξασκηθείς, θα μπορούσες να φτιάξεις μόνος σου τις συναρτήσεις από το να τις πάρεις έτοιμες. euxaristo...vevea mporousa na ftiaksw tis sinartiseis ala afou tis egrapses any way...episi to x*x auto to ksexasa entelos :P ta xo peksei ...dn to skeftika ka8olou. Quote Link to comment Share on other sites More sharing options...
ProJecT Posted March 2, 2011 Share Posted March 2, 2011 sqrT ειναι η sqr? Στην Pascal ειναι sqr Quote Link to comment Share on other sites More sharing options...
Hax0r Posted March 2, 2011 Share Posted March 2, 2011 sqrT ειναι η sqr? Στην Pascal ειναι sqr sqr είναι το τετράγωνο και sqrt είναι η ρίζα, στην pascal! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.