పోస్ట్‌లు

జీవించివున్నప్పుడు విలువ తెలుసుకో(లే)క తగువులాడి .. ఆ మనిషి గతించాక

జీవించివున్నప్పుడు విలువ తెలుసుకో(లే)క తగువులాడి .. ఆ మనిషి గతించాక 'అయ్యో.. గతంలో ఆ శ్రేయోభిలాషిని అర్థం చేసుకోలేదే..కనీసం మర్యాదగా పలకరించలేదే' అని బాధపడుతుంటారే! ..... 1 బతికి వుండగానె బాగుగ మాట్లాడు; 2 మూతి ముడుచుకొనకు ముందుగానె! 3 యేడ్చి తేని ఫలము యేమి పోయినదన్క? 4 మంచిమాటలాడి  మనిషి(/మనసు) గెల్వు! 4 మంచిమాటలాడు!  మనిషి(/మనసు) గెల్వు!! 4 మంచితనము చేత మనిషి(/మనసు) గెల్వు! (ఆటవెలది)

100% MATLAB prog సుడొకు తయారీ

clc clear all modalu=ceil(rand*9) %to geerate a integer in the range [1, 9] suDoku_v= zeros(9,9); for i=1:3  for j=1:9   tatkal=modalu+(3*(i-1))+j-1;   suDoku_v(i,j)= tatkal;    while(suDoku_v(i,j)>9)     suDoku_v(i,j)=suDoku_v(i,j)-9;   end end end for k=1:3  suDoku_v(3+k,:)=circshift(suDoku_v(k,:),-1);  %left shifting kth row by 1 unit to get (3+k)th row  suDoku_v(6+k,:)=circshift(suDoku_v(k,:),-2); end suDoku_v   https://www.mycompiler.io/new/octave   తెరమీద modalu = 7 suDoku_v = 7 8 9 1 2 3 4 5 6 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 1 2 3 8 9 1 2 3 4 5 6 7 2 3 4 5 6 7 8 9 1 5 6 7 8 9 1 2 3 4 9 1 2 3 4 5 6 7 8 3 4 5 6 7 8 9 1 2 6 7 8 9 1 2 3 4 5

100% MATLAB OCTAVE prog to get 1098 always ఐకమత్యమే_మహాబలము

clc clear all okaTla=floor(rand*8) %to geerate a integer in the range [0, 7] padula=floor(rand*10) temp=okaTla+2:9 length_temp=length(temp) tatkal=ceil(rand*length_temp) vandala=temp(tatkal) asalu=100*vandala+10*padula+okaTla tiragEsi=100*okaTla+10*padula+vandala teesESaka=asalu-tiragEsi %%k_vandala=(uint8) (floor(teesESaka/100)) k_vandala= (teesESaka-mod(teesESaka,100))/100 k_okaTla=mod(teesESaka,10) k_padula=(teesESaka-k_vandala*100-k_okaTla)/10 tippitE=100*k_okaTla+10*k_padula+k_vandala kalipitE=teesESaka+ tippitE https://www.mycompiler.io/new/octave     తెరమీద okaTla = 2 padula = 0 temp = 4 5 6 7 8 9 length_temp = 6 tatkal = 3 vandala = 6 asalu = 602 tiragEsi = 206 teesESaka = 396 k_vandala = 3 k_okaTla = 6 k_padula = 9 tippitE = 693 kalipitE = 1089

అధర్మం విలయతాండవం చేస్తోంది

బతికి వుండగానే న్యాయము గెలిచేది చూడగలమా అనిపిస్తుంది జరిగిన జరుగుతున్న ఘటనలు చూస్తుంటే.. న్యాయస్థానాల్లో  రక్షకభట వ్యవస్థలోని వారిలో చాలావరకు తమకు అనుకూలమైన విధంగా పనిచేసుకుంటూ జన సామాన్యానికి ఇబ్బందులు కల్పిస్తున్నారని ఇంతవరకు ఉన్న అనుభవాలు చాటుతున్నాయి.  1)  తెలుగు ప్రాంత సమైక్యతను కోరిన సామాన్య ప్రజలను పోలీసులు పారా మిలటరీ దళాలవారు అడ్డుకున్నప్పుడు అలా అడ్డుకున్న (=యూనిఫాం వేసుకున్న) వాళ్ళ దేశభక్తి తేలిపోయింది.  తెలుగునేల ఒకటిగా ఉండేలా తీర్పు ఇవ్వండి అని వ్యాజ్యం దాఖలు చేయచూస్తే కనీసం వ్యాజ్యం స్వీకరించటానికి కూడా పేరు గొప్ప సర్వోన్నతన్యాయస్థానానికి చేత కాలేదు.. వీరా దేశ సమైక్యతను కాపాడేది? తమకు కావాల్సిన అంశాల్లోనేమో.. సర్వాధికారాలు తమకు ఉన్నట్టు తాము గీచిన గీతను దాటరాదని చెప్పే కోర్టులు ప్రజలకు ఇబ్బంది కలుగుతున్న పలు అంశాల్లో తమకేం పట్టనట్టు/ తాము ఫలానా వాటిల్లో ఆదేశాలు ఇవ్వటానికి కుదరదు అని భళేగా తప్పించుకుంటారే! అప్పుడప్పుడు  కొందరు నిజాయితీగా ధర్మోద్ధరణకు పాటుపడుతున్న దాఖలాలు కన్పిస్తుంటాయి  2) దురుద్దేశ పూర్వకంగా ఒకరు ఒకేసారి నాలుగు+ వేర్వేరు కవర్లలో ఉత్తరాలు ఒకే చిరునామాకు పం

100% matlab prog to stop printing sequence on or before printing 8 numbers

కొన్నిసార్లు 4,2,1 pattern రావటానికి చాలా steps అవసరం కావచ్చు. But if we want to stop after printing just first 8 numbers even if 4,2,1 pattern has  not come by then.. we can use the following p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  count=0; temp=0; while(count<2 && temp<7) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end  temp=temp+1; end ఔట్పుట్ Output: p =  22 p =  11 p =  34 p =  17 p =  52 p =  26 p =  13 p =  40

100% matlab code .. optimised to get 4,2,1 pattern

%Can be optimised as follows p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  count=0; while(count<3) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end end disp('lets stop now as we noticed it is giving 4,2,1 sequence as a loop') ఔట్పుట్ Output: p =  23 p =  70 p =  35 p =  106 p =  53 p =  160 p =  80 p =  40 p =  20 p =  10 p =  5 p =  16 p =  8 p =  4 p =  2 p =  1 p =  4 p =  2 p =  1 p =  4 p =  2 p =  1 lets stop now as we noticed it is giving 4,2,1 sequence as a loop created just now Octave Online

100% matlab prog to get special pattern 4,2,1

p=4+ceil(rand*20) %choosing a integer between & including 5 and  24  if (mod(p,2)==0)  p=p/2 else p=3*p+1 end count=0; while(count<=3) %% after few recurrences of the pattern 4,2,1 we wish to stop  if (mod(p,2)==0)   p=p/2  else   p=3*p+1  end  if(p==1)   count=count+1;  end end disp('lets stop now as we noticed it is giving 4,2,1 sequence as a loop') ---- తెరమీద   Output: p = 20 p = 10 p = 5 p = 16 p = 8 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 p = 4 p = 2 p = 1 lets stop now as we noticed it is giving 4,2,1 sequence as a loo https://onecompiler.com/octave/42b8x7fge  ఐఐటీ మద్రాస్ లో 2024 మార్చి నెల మొదట్లో జరిగిన open house లో maths dept విద్యార్థుల వద్ద  నేర్చుకున్న  గణిత చమత్కారమును ఇలా octave/ matlab ప్రోగ్రాం వ్రాసితిని. ఈ లెక్క వివరణ కోసం https://youtu.be/wIu0GHYyE4Q (05:34) చూడవచ్చు