Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


2 Pages<12
Options
Go to last post Go to first unread
Offline ElSid  
#21 Posted : 24 December 2021 18:57:12(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 433
Man
United States
Location: USA

Was thanked: 17 time(s) in 15 post(s)
Originally Posted by: overlord Go to Quoted Post
Originally Posted by: chito Go to Quoted Post
Is there a reason why Dy is within in eval()?

eval() makes computations faster most of time.
Very minor times, may have no effect or slows the calculation.
It would be wise to choose where and when to use it.

2021-12-23_17-53.png

Originally Posted by: chito Go to Quoted Post
I think this is a very important point that I need to keep in mind. Using unique names in functions is also a great suggestion. Thank you overlord.

Well thank you, glad if I could help.
There are some other tricks to remember as well.
Here is list of which come to my mind at this instant;
  • symbolic/numeric optimization
    most errors can be parsed with selecting the right one
  • Δ temperatures (Δ°C, Δ°F, Δ°Re)
  • not using units for some solvers {solve(), roots()}
    or using multiplications at right place to trick solver as value is unitless
  • using maple() or maxima() for most symbolic results (better support)
  • smath vectors/matrices starts with 1, mathcad starts with 0
    some new users troubles with converting mathcad functions to smath
  • recursive functions shall give an error after 50 steps
    better not to use it, try to wrtie algorithms conventional way
  • eval() for faster calculations
  • line() for functions (not needed always)
  • to be careful for variable names
  • choosing right plot for the right job

Interesting list and I like the explanation of "LINE". In addition, it took me a bit to understand using # in the variable name when I first started. I now use it all the time, but it took me a bit for it to sink in & a newbie needs to understand that it's a special character (I tend to use # first). As I update some of my calculations, I'll look at both of these items
Offline Jean Giraud  
#22 Posted : 26 December 2021 21:35:23(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
1. as well, you can recast the function name.
2. and use algo style to be more pro.

Maths Algo Style READ First.sm (52kb) downloaded 5 time(s).
Offline Jean Giraud  
#23 Posted : 27 December 2021 03:44:01(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: ElSid Go to Quoted Post
Interesting list and I like the explanation of "LINE". In addition, it took me a bit to understand using # in the variable name when I first started.

line | is typical of an algorithmic suite wrt a dependent program.
Download 2022 Samples ... see color(M).
The algo style I offered previously was not possible official SS 5346,
but possible from Un-Official SS 5346 from recollection.
Then came superb native Smath 6179.
Cheers ... Jean

Offline Jean Giraud  
#24 Posted : 27 December 2021 18:32:32(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
1. as well, you can recast the function name.

That's what I meant by recast, last page of the attached.
Cheers ... Jean.

Recast.PNG

Integrate AdaptiveRombergKernel FIRST Tool.sm (153kb) downloaded 4 time(s).
Offline Jean Giraud  
#25 Posted : 27 December 2021 23:19:04(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,866
Canada

Was thanked: 981 time(s) in 809 post(s)
Recast Integrator.PNG
Offline overlord  
#26 Posted : 27 December 2021 23:41:45(UTC)
overlord


Rank: Advanced Member

Groups: Registered
Joined: 23/07/2013(UTC)
Posts: 1,129
Turkey

Was thanked: 510 time(s) in 340 post(s)
Originally Posted by: ElSid Go to Quoted Post
Interesting list and I like the explanation of "LINE".

Originally Posted by: ElSid Go to Quoted Post
I now use it all the time.

After I finished to write list, I realized it too. (swh)
Line explanation is not mine, it is from Reference Book.
I do started to use some special characters too.
This is much easier to assign unique variable names at first than maintaining after using them.
Users browsing this topic
Guest
2 Pages<12
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.