Simplified rational constructor.