Jump to content
GreenGirl

Feature Request: Add Log10 (Logarithm Base 10) function to textfields

Recommended Posts

I was recently shown: https://affinity.help/designer/English.lproj/pages/Workspace/expressions.html

However, the function I need (Log10) is missing.

Please add?

Also, is it possible to use multiple functions in a single text field? I have need to specify a number between a range of positive real numbers into a formula like this:

(360.0 * log10(sin(number that can vary between 0 and 1)))

Share this post


Link to post
Share on other sites
2 minutes ago, GreenGirl said:

Also, is it possible to use multiple functions in a single text field? I have need to specify a number between a range of positive real numbers into a formula like this:

 (360.0 * log10(sin(number that can vary between 0 and 1)))

Yes, you can do that (but obviously not with log10 at the moment).


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iPadOS 13.2.2 (iPad Air 2)

Share this post


Link to post
Share on other sites

To convert from natural logs to logs base 10, just multiply by 0.434294481903252 (log10(exp(1)).

You can easily include this constant in your expressions.

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites
5 hours ago, John Rostron said:

You can easily include this constant in your expressions.

Easily?

I don't think I've ever seen a 14 decimal-place constant called easy :D


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.7.3.481 and 1.8.0.514 Beta   / Affinity Designer 1.7.3.481 and 1.8.0.514 Beta  / Affinity Publisher 1.7.3.481 and 1.8.0.523 Beta

Share this post


Link to post
Share on other sites
2 hours ago, walt.farrell said:

Easily?

I don't think I've ever seen a 14 decimal-place constant called easy :D

Well there is easy and then there is accurate... In my head pi used to have 6 decimal places, now it only has 2.


MacBook Pro (13-inch, Mid 2012) Mac OS 10.12.6 || Mac Pro (Late 2013) Mac OS 10.14.5

Affinity Designer 1.7.3 | Affinity Photo 1.7.3 | Affinity Publisher 1.7.3 | Affinity Designer Beta 1.7.x.x | Affinity Photo Beta 1.7.x.x | Affinity Publisher Beta 1.8.0.518

Share this post


Link to post
Share on other sites
14 hours ago, walt.farrell said:

Easily?

I don't think I've ever seen a 14 decimal-place constant called easy :D

You can copy and paste a 14 decimal place constant just as easily as a 2 decimal place one.

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites
12 hours ago, Old Bruce said:

Well there is easy and then there is accurate... In my head pi used to have 6 decimal places, now it only has 2.

I’m shocked to discover that you don’t remember it to twenty decimal places (3.14159265358979323846) as I do! :P


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iPadOS 13.2.2 (iPad Air 2)

Share this post


Link to post
Share on other sites
19 hours ago, Alfred said:

I’m shocked to discover that you don’t remember it to twenty decimal places (3.14159265358979323846) as I do! :P

Do you guys here seen the British guy that can Pi with more than 21000 decimals?

T

Share this post


Link to post
Share on other sites
On 7/19/2019 at 12:52 PM, Alfred said:

I’m shocked to discover that you don’t remember it to twenty decimal places (3.14159265358979323846) as I do! :P

I do recall there was a mnemonic for the decimal digits of pi that began "How I wish I could ..." I recall that Archimedes" featured somewhere for 9.

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites
1 hour ago, John Rostron said:

I do recall there was a mnemonic for the decimal digits of pi that began "How I wish I could ..." I recall that Archimedes" featured somewhere for 9.

That rings a vague bell, John. The mnemonic I know is

Quote

Sir, I bear a rhyme excelling,
In mystic force and magic spelling.
Celestial sprites elucidate,
All my own striving can’t relate.

One nice touch is that it even includes a comma for the decimal separator after ‘Sir’ (3). I find it almost as easy to remember a string of twenty digits, which has the advantage that you don’t need to do any counting, but it’s good to have a mnemonic to fall back on if you get lost somewhere along the way!


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iPadOS 13.2.2 (iPad Air 2)

Share this post


Link to post
Share on other sites
5 hours ago, John Rostron said:

I recall that Archimedes" featured somewhere for 9.

I’ve just re-read this and spotted a slight problem: “Archimedes” has 10 letters! :o

Edit: Found it!

Quote

How I wish I could recollect, of circle round, the exact relation Arkimedes (or Archimede) learned

https://www.mnemonic-device.com/arithmetic/pi/may-i-have-a-large-container-of-coffee/


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iPadOS 13.2.2 (iPad Air 2)

Share this post


Link to post
Share on other sites
4 minutes ago, Alfred said:

I’ve just re-read this and spotted a slight problem: “Archimedes” has 10 letters! :o

I told you that it was what I recalled. I did not say my recollection was accurate. I met this mnemonic at school, probably over sixty years ago!

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites
13 minutes ago, Alfred said:
16 minutes ago, Alfred said:

How I wish I could recollect, of circle round, the exact relation Arkimedes (or Archimede) learned

 

I think that a mnemonic that relies on a variant spelling is of less than optimal utility.

John


Windows 10, Affinity Photo 1.7 and Designer 1.7, (mainly Photo), now ex-Adobe CC

CPU: AMD A6-3670. RAM: 16 GB DDR3 @ 666MHz, Graphics: 2047MB NVIDIA GeForce GT 630

Share this post


Link to post
Share on other sites
7 minutes ago, John Rostron said:

I think that a mnemonic that relies on a variant spelling is of less than optimal utility.

As clearly demonstrated by the fact that you couldn’t recall it accurately a mere sixty years later. :P


Alfred online2long.gif
Affinity Designer/Photo/Publisher 1.7.3.481 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.7.3.155 • Designer for iPad 1.7.3.1 • iPadOS 13.2.2 (iPad Air 2)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.