Javascript |
||||||||||
Plot Complex Number Interpolation
this code is created first by chatGPT on Jan 29 2023 (meaning using chatGPT 3.5) and then modified a little bit my me. The initial request that I put into chatGPT is as follows :
NOTE : It is not guaranteed that you would have the same code as I got since chatGPT produce the answers differently depending on the context. And it may produce the different answers everytime you ask even with the exact the same question. NOTE : If you don't have any of your own idea for the request, copy my request and paste it into the chatGPT and put additional requests based on the output for the previous request. I would suggest to create a new thread in the chatGPT and put my request and then continue to add your own request.
Usage : Click on [Plot] button. When you change the contents of the input box using spin button, you will get the updated plot right away
NOTE : I downloaded the math.js library from Mathjs homepage and placed in local path : mathjs/math.js NOTE : The canvas scaling was not done as expected. I would have spent long time to fix it, but I managed to fix it quickly based on the experience with this note.
|
||||||||||