Jump to content
JET_Affinity

Math Functions Not Working?

Recommended Posts

Interesting. They will work if entered as part of an expression. That is, "*sqrt(2)" works, but "sqrt(2)" doesn't. Both work in Designer 1.6.5.123.


-- Walt

Windows 10 Home, version 1809, 16GB memory, Intel Core i7-6700K @ 4.00Gz
Affinity Photo 1.6.5.123 and 1.7.0.258 Beta
Affinity Designer 1.6..5.123 and 1.7.0.258 Beta
Affinity Publisher 1.7.0.270 Beta

Share this post


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

That's because it's an operation on the existing value (i.e. value * sqrt(2)). In theory sqrt(2) should produce a constant number too.

Right. Mainly I tried the expression to prove that sqrt(2) was working at least some of the time. In AD 1.6.5 entering "sqrt(2)" as a value produces 1.414 but in 1.7 it is ignored and the original value is restored.


-- Walt

Windows 10 Home, version 1809, 16GB memory, Intel Core i7-6700K @ 4.00Gz
Affinity Photo 1.6.5.123 and 1.7.0.258 Beta
Affinity Designer 1.6..5.123 and 1.7.0.258 Beta
Affinity Publisher 1.7.0.270 Beta

Share this post


Link to post
Share on other sites
1 minute ago, walt.farrell said:

Right. Mainly I tried the expression to prove that sqrt(2) was working at least some of the time. In AD 1.6.5 entering "sqrt(2)" as a value produces 1.414 but in 1.7 it is ignored and the original value is restored.

Ah OK, that's defo a bug then. I thought @JET_Affinity was expecting "value * sqrt(2)" as the result from "sqrt(2)" input.

Share this post


Link to post
Share on other sites
16 hours ago, JET_Affinity said:

Version 1.7.0.188

  1. Rectangle Tool: Drag to draw a rectangle.
  2. Transform palette: Proportional link off. Key "Sqrt(2)" into W field.
  3. Tap Enter key.

Nothing happens.

JET

Yup - looks like a cockroach to me.

Share this post


Link to post
Share on other sites
21 hours ago, Mark Ingram said:

Ah OK, that's defo a bug then. I thought @JET_Affinity was expecting "value * sqrt(2)" as the result from "sqrt(2)" input.

Interesting. So sqrt(2) returns a 'constant' value, so independent on the current value of a textbox.

But how does this relate to a textbox, like width or height, set to '50%'? (When entering 50% the %, instead of sqrt(2) ís dependent on the current value since it returns 0.5 * value. Which is actually a pretty great feature btw), so that seems to be a different approach?


 

Share this post


Link to post
Share on other sites
1 minute ago, Friksel said:

Interesting. So sqrt(2) returns a 'constant' value, so independent on the current value of a textbox.

Why would it return anything else? The value of sqrt(2) is a constant.

Quote

But how does this relate to a textbox, like width or height, set to '50%'? (When entering 50% the %, instead of sqrt(2) ís dependent on the current value since it returns 0.5 * value. Which is actually a pretty great feature btw)

Since 50% represents a proportion rather than an absolute value, it has to be a proportion of something! That ‘something’ can either be another value — e.g. w or h or sqrt(2) — or the current value in the selected input box.


Alfred online2long.gif
Affinity Designer 1.6.5.123 • Affinity Photo 1.6.5.123 • Windows 10 Home (4th gen Core i3 CPU)
Affinity Photo for iPad 1.6.11.85 • Affinity Designer for iPad 1.6.4.45 • iOS 12.1.4 (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

×