Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Addind Options to Function

$
0
0

Hi everyone.
I think this is really simple but I am not getting around it.

I have this function Rps that does some computation. Now, to the final results I can add some corrections. I would like to be able to do:

Rps(all arguments) → Standard output
Rps(all aguments, ‘Flat’) → Standard Output
Rps(all aguments, ‘Sphere’) → Apply spherical correction
Rps(all aguments, ‘Anaelastic’) → Apply anaelastic correction
Rps(all aguments,‘Sphere’, ‘Anaelastic’) → Apply both corrections

How can I get these keywords working inside the functions body?

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles