Generic Legendry Function Alog added