Physics and Astronomy Publications

Document Type


Publication Date


First Page


Last Page



Algorithms that calculate the current-voltage (I-V) characteristics of a solar cell play an important role in processes that aim to improve the efficiency of a solar cell. I-V characteristics can be obtained from different models used to represent the solar cell, and the single diode model is a simple yet accurate model for common field implementations. However, the I-V characteristics are obtained by solving implicit equations, which involve repeated iterations and inherent errors associated with numerical methods used. Some methods use the Lambert W function to get an exact explicit formula, but often causes numerical overflow problems. The present work discusses an algorithm to calculate I-V characteristics using the LogWright function, a transformation of the Lambert W function, which addresses the problem of arithmetic overflow that occurs in the Lambert W implementation. An implementation of this algorithm is presented and compared against other algorithms in the literature. It is observed that in addition to addressing the numerical overflow problem, the algorithm based on the LogWright function offers speed benefits while retaining high precision.


This pre-print is also available at

Associated code is available at

Creative Commons License

Creative Commons Attribution 4.0 License
This work is licensed under a Creative Commons Attribution 4.0 License.