PageSourceSearch

https://edubasebd.com/build/assets/PhysicsTools-ad6eb200.js

js edubasebd.com collected 2026-09-25 09:54:08 UTC 6,004 bytes, 1 lines download raw bytes

1import{j as e,p as f,bf as N,ar as F,bg as k,am as C}from"./app-d273c2fb.js";import{u as w,r as o}from"./vendor-dbc95344.js";import{B as y}from"./Breadcrumb-524723cc.js";import{S as P}from"./Seo-fab0d01d.js";import{R as S}from"./RelatedTools-f1d43ceb.js";import{J as R}from"./JsonLd-8d213730.js";const E=()=>{const x=w();o.useState({m:"",a:"",f:""});const[l,d]=o.useState({v:"",i:"",r:""});o.useState({v:"",d:"",t:""}),o.useState({f:"",d:"",w:"",p:"",t:""}),o.useState({m:"",v:"",h:"",ke:"",pe:""}),o.useState(""),o.useState(null);const[n,m]=o.useState({v0:"",angle:"",result:""}),[t,i]=o.useState({m:"",v:"",r:"",f:""}),[c,p]=o.useState({rho:"",h:"",result:""}),u=()=>{const a=parseFloat(n.v0),s=parseFloat(n.angle)*(Math.PI/180),r=9.81;if(a>0){const j=a*a*Math.sin(2*s)/r;m({...n,result:j.toFixed(2)+" m"})}},h=()=>{const a=parseFloat(t.m),s=parseFloat(t.v),r=parseFloat(t.r);a>0&&s>0&&r>0&&i({...t,f:(a*s*s/r).toFixed(2)})},g=()=>{const a=parseFloat(c.rho),s=parseFloat(c.h),r=9.81;a>0&&s>0&&p({...c,result:(a*r*s).toFixed(2)+" Pa"})},b=[{name:"Speed of Light (c)",value:"299,792,458 m/s"},{name:"Gravitational Constant (G)",value:"6.674 × 10⁻¹¹ m³⋅kg⁻¹⋅s⁻²"},{name:"Acceleration due to Gravity (g)",value:"9.80665 m/s²"},{name:"Planck Constant (h)",value:"6.626 × 10⁻³⁴ J⋅s"}],v={"@context":"https://schema.org","@type":"WebApplication",name:"Physics & Mechanics Calculators",description:"Free online physics calculators for Ohm's Law (V=IR), Projectile Range, and Fluid Pressure (P=ρgh).",applicationCategory:"EducationalApplication",operatingSystem:"All",offers:{"@type":"Offer",price:"0",priceCurrency:"USD"}};return e.jsxs("div",{className:"mx-auto max-w-screen-2xl p-4 md:p-6 2xl:p-10",children:[e.jsx(P,{title:"Physics & Mechanics Calculators | Ohm's Law, Projectile Motion, Fluid Pressure",description:"Free online physics calculators for Ohm's Law (V=IR), Projectile Range, Centripetal Force, and Fluid Pressure (P=ρgh). Advanced STEM tools for students."}),e.jsx(R,{data:v}),e.jsx(y,{pageName:"Physics Calculators"}),e.jsxs("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:[e.jsxs("div",{className:"rounded border bg-white p-6 shadow dark:bg-boxdark",children:[e.jsxs("h3",{className:"mb-4 font-bold flex items-center gap-2",children:[e.jsx(f,{})," Ohm's Law (V=IR)"]}),e.jsxs("div",{className:"grid grid-cols-3 gap-1 mb-4",children:[e.jsx("input",{placeholder:"V",value:l.v,onChange:a=>d({...l,v:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"I",value:l.i,onChange:a=>d({...l,i:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"R",value:l.r,onChange:a=>d({...l,r:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"})]}),e.jsx("button",{onClick:()=>{const{v:a,i:s,r}=l;a&&s?d({...l,r:(parseFloat(a)/parseFloat(s)).toFixed(2)}):a&&r?d({...l,i:(parseFloat(a)/parseFloat(r)).toFixed(2)}):s&&r&&d({...l,v:(parseFloat(s)*parseFloat(r)).toFixed(2)})},className:"w-full bg-primary text-white text-xs py-2 rounded",children:"Solve"})]}),e.jsxs("div",{className:"rounded border bg-white p-6 shadow dark:bg-boxdark",children:[e.jsxs("h3",{className:"mb-4 font-bold flex items-center gap-2",children:[e.jsx(N,{})," Projectile Range"]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-4",children:[e.jsx("input",{placeholder:"Vel (m/s)",value:n.v0,onChange:a=>m({...n,v0:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"Angle (°)",value:n.angle,onChange:a=>m({...n,angle:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"})]}),e.jsx("button",{onClick:u,className:"w-full bg-primary text-white text-xs py-2 rounded",children:"Calculate Range"}),n.result&&e.jsx("p",{className:"mt-2 text-center font-bold",children:n.result})]}),e.jsxs("div",{className:"rounded border bg-white p-6 shadow dark:bg-boxdark",children:[e.jsxs("h3",{className:"mb-4 font-bold flex items-center gap-2",children:[e.jsx(F,{})," Centripetal Force"]}),e.jsxs("div",{className:"grid grid-cols-3 gap-1 mb-4",children:[e.jsx("input",{placeholder:"m (kg)",value:t.m,onChange:a=>i({...t,m:a.target.value}
1),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"v (m/s)",value:t.v,onChange:a=>i({...t,v:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"r (m)",value:t.r,onChange:a=>i({...t,r:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"})]}),e.jsx("button",{onClick:h,className:"w-full bg-primary text-white text-xs py-2 rounded",children:"Calculate Force"}),t.f&&e.jsxs("p",{className:"mt-2 text-center font-bold",children:[t.f," N"]})]}),e.jsxs("div",{className:"rounded border bg-white p-6 shadow dark:bg-boxdark",children:[e.jsxs("h3",{className:"mb-4 font-bold flex items-center gap-2",children:[e.jsx(k,{})," Fluid Pressure (P=ρgh)"]}),e.jsxs("div",{className:"grid grid-cols-2 gap-2 mb-4",children:[e.jsx("input",{placeholder:"Density (kg/m³)",value:c.rho,onChange:a=>p({...c,rho:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"}),e.jsx("input",{placeholder:"Height (m)",value:c.h,onChange:a=>p({...c,h:a.target.value}),className:"border p-1 text-xs dark:bg-meta-4"})]}),e.jsx("button",{onClick:g,className:"w-full bg-primary text-white text-xs py-2 rounded",children:"Calculate P"}),c.result&&e.jsx("p",{className:"mt-2 text-center font-bold",children:c.result})]}),e.jsxs("div",{className:"rounded border bg-white p-6 shadow dark:bg-boxdark md:col-span-2 lg:col-span-1",children:[e.jsxs("h3",{className:"mb-4 font-bold flex items-center gap-2",children:[e.jsx(C,{})," Physical Constants"]}),e.jsx("div",{className:"space-y-1 text-xs",children:b.map((a,s)=>e.jsxs("div",{className:"flex justify-between border-b pb-1 dark:border-strokedark",children:[e.jsx("span",{children:a.name}),e.jsx("span",{className:"font-mono",children:a.value})]},s))})]})]}),e.jsx(S,{currentPath:x.pathname})]})};export{E as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.