MML2021: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „ function F(n,m) { if(n==0) return(0); else { if(n==1 && m==0) return(0); else { if(n==1 && m>0) return(2/(m+2)*m/(m+1)+m/(m+2)*F(1,m-1)); else { if(m=…“) |
|||
Zeile 10: | Zeile 10: | ||
− | [https://ide.cube.codes/app/?init=loadFromUrl&url=https://share-repository.cube.codes/v1/appStates/da4fecfb-03eb-4f62-8898-676c87e8b37f direkt zu CUBE.CODES] | + | >>> [https://ide.cube.codes/app/?init=loadFromUrl&url=https://share-repository.cube.codes/v1/appStates/da4fecfb-03eb-4f62-8898-676c87e8b37f direkt zu CUBE.CODES] |
Version vom 24. April 2021, 01:09 Uhr
function F(n,m) { if(n==0) return(0); else { if(n==1 && m==0) return(0); else { if(n==1 && m>0) return(2/(m+2)*m/(m+1)+m/(m+2)*F(1,m-1)); else { if(m==0) return(1/(2*n-1)*F(n-1,0)+(2*n-2)/(2*n-1)*(F(n-2,2)+1)); else return(2*n/(2*n+m)*1/(2*n+m-1)*F(n-1,m)+2*n/(2*n+m)*(2*n-2)/(2*n+m-1)*(F(n-2,m+2)+1)+2*n/(2*n+m)*m/(2*n+m-1)*(F(n-1,m)+1)+m/(2*n+m)*F(n,m-1)); }}} }
UI.log(F(9,9));