Skip to main content

Posts

Showing posts from November, 2025

Math uses in Real Life Engineering

  Bro, ম্যাথ literally everywhere. তুমি ভাবছো শুধু exam আর CP তে লাগে? Nahhh—real life is fully math-coded. নিচে breakdown দিলাম কোন ধরনের math কোথায় use হয়: --- 🔷 1️⃣ Arithmetic & Basic Algebra Where used: bazar-shopping bKash হিসাব discount calculation salary/loan time–distance cooking measurements Vibe: real life survival skills. --- 🔷 2️⃣ Geometry   Where used in real life: land measurement building design architecture map navigation camera FOV graphics design drones & robotics path game development animation computer vision --- 🔷 3️⃣ Trigonometry Where used: measuring tall buildings using angles GPS mobile network towers 3D graphics sound waves machine learning (loss functions, angles) physics simulations AC–DC circuits --- 🔷 4️⃣ Calculus (Differentiation + Integration) Where used: speed, acceleration population growth stock market prediction AI/ML optimization physics motion engineering designs area/volume calculation of weird shapes traffic flow analysis...

বিটওয়াইজ অপারেটর (Bitwise Operator) — একদম সহজভাবে বুঝে ফেলো

  বিটওয়াইজ অপারেটর (Bitwise Operator) — একদম সহজভাবে বুঝে ফেলো প্রোগ্রামিংয়ে আমরা সাধারণত logical operator (যেমন && , || , ! ) ব্যবহার করি শর্ত যাচাই করার জন্য। কিন্তু bitwise operator একটু আলাদা — এটা কাজ করে bit-level এ, মানে সংখ্যার binary রূপের উপর সরাসরি অপারেশন চালায়। এই জিনিসটা competitive programming (CP) এ অনেক দরকারি, কারণ এটা দিয়ে আমরা — দ্রুত কিছু গণনা করতে পারি সেট (set) বা mask হিসেবে সংখ্যা ব্যবহার করতে পারি পারফরম্যান্স বাড়াতে পারি চলো এখন ধাপে ধাপে বুঝে ফেলি। 👇 🧩 ১️⃣  বিটওয়াইজ অপারেটরগুলা কী? অপারেটর নাম কাজ & AND দুই bit-ই 1 হলে 1 ` ` OR ^ XOR দুই bit আলাদা হলে 1 ~ NOT সব bit উল্টে দেয় (1 → 0, 0 → 1) << Left Shift bit গুলোকে বামে সরিয়ে দেয় >> Right Shift bit গুলোকে ডানে সরিয়ে দেয় 🧠 ২️⃣  Bitwise কীভাবে কাজ করে? ধরা যাক: Expression Binary Result Decimal Result Explanation a & b 0001 1 দুই জায়গায়ই 1 থাকলে 1 `a b` 0111 7 a ^ b ...