In Electric Vehicles (EVs), the driving range is the estimated distance a vehicle can travel on a fully charged battery. The range (R) can be calculated using the formula:
where:
  • ​ is the total battery capacity (in kilowatt-hours, kWh)
  • is the efficiency factor of the EV drivetrain (as a decimal, e.g., 0.9 for 90% efficiency)
  • ​ is the vehicle’s energy consumption per kilometer (in kWh/km)
  • R is the estimated driving range (in kilometers)
Write a function to estimate the driving range of an EV given the battery capacity, efficiency, and energy consumption per kilometer.

Solution Stats

267 Solutions

250 Solvers

Last Solution submitted on Feb 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...

Problem Recent Solvers250

Suggested Problems

More from this Author20

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!