untitled

Pasted Nov 29, 2026, 10:36 AM1 file30 lines

Scan to open on your phone

Point a camera at the QR code - it opens this exact paste, no app needed.

https://codepastes.com/zzgrt5jzr6baq0c9
untitled
%Lat membuat program untuk menentukan jenis interaksi
clc
clear all
N=100
m_fl = 0.0003; m_ec = 1.023; m_pp = 0.8633;
m_tot=m_fl+m_ec+m_pp;
p_fl=m_fl/m_tot; p_ec=m_ec/m_tot; p_pp=m_pp/m_tot
N_fl =0; N_ec =0; N_pp =0;
for i=1:N
  bil=rand (1);
  if bil < p_ec
    FP=-(1/m_tot)*log(rand(1));
    plot(i,FP, '*r')
    hold on
    N_ec = N_ec+1;
  elseif bil < (p_ec + p_fl)
    FP=-(1/m_tot)*log(rand(1));
    plot(i,FP, '*g')
    hold on
    N_fl = N_fl+1;
  else
    FP=-(1/m_tot)*log(rand(1));
    plot(i,FP, '*b')
    hold on
    N_pp = N_pp+1;
    end
  end
  N_ec = N_ec
  N_fl = N_fl
  N_pp = N_pp

602 chars · codepastes.com