Skip navigation.

Putra Pratama's page

Assalamualaikum

Ellips

,

> Elips1:=(x,y,z)->(x^2/25)+(y^2/16)+(z^2/9)=1;

pertaam - tama kita definisikan dulu fungsinya. kita definisikan satu persatu dan gambar dulu satu persatu baru setelah itu digabung. kita menggbarnya dengan menggunakan perintah implicitplot3d.
> implicitplot3d((x^2/25)+(y^2/16)+(z^2/9)=1,x=-5..5,y=-4..4,z=-5..5);

Selanjutnya kita definisikan elips yang kedua dan kita gambarkan juga dengan menggunakan perintah implicitplot3d.
> Elips2:=(x,y,z)->(x^2/9)+(y^2/16)+(z^2/25)=1;

> implicitplot3d((x^2/9)+(y^2/16)+(z^2/25)=1,x=-5..5,y=-4..4,z=-5..5);

> _seed:=rand();

> randomX:=()->rand()/10.0^12;

> randomY:=()->rand()*.25/10.0^12;

> PasUr:={seq([randomX(),randomY()],k=1..1000)}:
> nDalamS:=0:
> for i from 1 to 1000 do
if PasUr [2]<=f(PasUr[1]) then nDalamS:=nDalamS+1 fi od;


Error, cannot determine if this expression is true or false: .1357769704e-1-f(.1081886648e-1) <= 0

> nDalamS;

>

Maple Practice 2Optimasi Berkendala dan Pengali Langrange

Comments

Anonymous 28. September 2009, 03:16

novel writes:

kurang lengkap mengenai leips nya.....alna aq da tgs mengenai elips ni..... gmn dong

Putra Pratama 14. November 2009, 05:23

Originally posted by anonymous:

novel writes:

kurang lengkap mengenai leips nya.....alna aq da tgs mengenai elips ni..... gmn dong




hemm.. gimana yak? soalnya aku juga udah jarang praktikum pake softwarenya. Jadi rada lupa gitu dah.. hehe:(

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies

December 2009
M T W T F S S
November 2009January 2010
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31