It depends on what type of network and default properties you used.
The first expression does not include
1. a hidden layer
2. input and target normalization
3. output un-normalization
Search Answers for my code using the keyword
Hope this helps.
Thank you for formally accepting my answer