Who can enlighten or provide a link to training materials a even better (if any) for a price simulation program on a decentralized exchange pancakeswap and uniswap
Those decentralized exchanges you mentioned are overrides of how the way traditional markets work system, I guess the term you are looking for is "Automated Market Makers", you can use that keyword to find any resources about that. Or try to see the article below from Uniswap docs and Coindesk.
How does the Uniswap protocol compare to a typical market?What Is an Automated Market Maker?