Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X
Hello,
I want to find a way to replicate the function of logspace but using numbers, log function, usual math operators only.
Solved! Go to Solution.
What did you expect other than i again when you write log(10^i) ???
Maybe this is what you are looking for
Or turned into a user-written LogSpace function
What did you expect other than i again when you write log(10^i) ???
Maybe this is what you are looking for
Or turned into a user-written LogSpace function
@Werner_E wrote:
What did you expect other than i again when you write log(10^i) ???
Was only as to write something, to show with what math functions only I want to obtain the same result as Prime function logspace gave.
Thank you.
Try this
Here's an alternative implementation, called logrange, derived from an old M11 Library.
The name "logspace" for the Mathcad function seems to run counter to that of several other programming languages, eg Matlab and Python (NumPy).
The local function logspace in logrange behaves the same as the Matlab/NumPy function logspace, whilst logrange behaves like NumPy's geomspace.
You can make logrange's linspace and logspace into functions in their own right (indeed, logrange is defined in terms of linspace, another function funspace, and logspace in my Mathcad library).
Stuart