Sajjad Hossain - MATLAB Cody - MATLAB Central

Sajjad Hossain

2194
Rank
6
Badges
1308
Score
1 – 50 of 114

Sajjad Hossain submitted a Comment to Problem 953. Pi Estimate 1

function [estimate] = pi_est1(nMax) estimate=0; for i=1:(nMax-1) m=2*i+1; if mod(i,2)~=0 estimate=(1/m)+estimate; else estimate=-(1/m)+estimate; end end estimate=(1-estimate)*4; estimate=round(estimate,6); end

on 4 Oct 2020

Sajjad Hossain received Community Group Solver badge for Basics - Triangles

on 4 Oct 2020

1 – 50 of 114
Go to top of page