tiy Posted February 9, 2006 Report Share Posted February 9, 2006 Ka pieraksta pakapes ieksh php 2^3=8 jeb 2*2*2 5^2=25 jeb 5*5 es zinu ka ir f-ja pow, bet vina strada loti loti leni, vai ir jaraksta pasham sava pakapes f-ja? Link to comment Share on other sites More sharing options...
Kavacky Posted February 9, 2006 Report Share Posted February 9, 2006 Ko tev nozīmē "strādā ļoti lēni"? Ja reiz tur būtu tāds pakāpju pieraksts, diez vai vajadzētu kādu vēl specifisku funkciju dublēšanai. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 9, 2006 Report Share Posted February 9, 2006 vispaar PHP nepaaraak labi sadziivo ar standart matemaatiskajaam f-jam :( sadziivo bet saliidzinoshi leeni :( Nu iisti tam vinsh naff domaats ..... ja apsaluuti primiitivs tas varijansts --> Int^Int tad uzraksti savu f-ju... (cik tur taa darba) (nu nezinu vispaar jau man skjit ka tam pow() vajadzeetustraadaat aatri...) P.S. nu jaa jaajautaa ko tu gribeeji kaapinaat kuraa pakaapee? 9999999999999^99999999999999999999999 ???????? vai? Link to comment Share on other sites More sharing options...
Ugga Posted February 13, 2006 Report Share Posted February 13, 2006 Lasu grāmatu un lūk example: // Declare and define the function function cube($num) { return $num * $num * $num; // Returns $num } // Invoke the cube() function: echo (cube(6)); // Prints 216 Link to comment Share on other sites More sharing options...
osk Posted February 13, 2006 Report Share Posted February 13, 2006 Tad jau labāk for ciklu... Link to comment Share on other sites More sharing options...
Stopp Posted February 13, 2006 Report Share Posted February 13, 2006 hmm, līdz šim lietoju savu funkciju ar ciklu, tagad tik par tādu pow uzzināju :) bet nu vai tad gatava funkcija strādās lēnāk par paša gatavotu funkciju, kas satur pāris funkcijas.. ? Link to comment Share on other sites More sharing options...
bubu Posted February 13, 2006 Report Share Posted February 13, 2006 Ugga: varbūt tur par funkcijām stāsta un māca, nevis pakāpes māca. Link to comment Share on other sites More sharing options...
Ugga Posted February 14, 2006 Report Share Posted February 14, 2006 Whatever. Link to comment Share on other sites More sharing options...
Recommended Posts