High-function inverter for solar energy