Message Boards Message Boards

0
|
1516 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:

How to make an expression evaluate in cloud deployed function?

I have deployed a form function at https://www.wolframcloud.com/obj/burbery1/multiples%20of%20the%20SI%20coherent%20unit%20for%20force that finds a multiple of the SI coherent unit for force with computed quantity. For example, it converts 9876543 N to 9.876543 MN. I entered weight of 10000000000000000000000000000 kg and it evaluated to

UnitConvert[Quantity[10000000000000000000000000000, "KilogramsForce"], "Ronnanewtons"]

Is there a reason this didn't evaluate? I want to ensure the function returns a quantity, not a line of code. I think the issue is that ronnanewtons use the new prefix ronna just introduced in November of last year, so maybe the Wolfram Cloud Server isn't evaluating them. I tested the expression with CloudEvaluate and it worked though:

CloudEvaluate[
 UnitConvert[
  Quantity[10000000000000000000000000000, "KilogramsForce"], 
  "Ronnanewtons"]]

returns

Quantity[196133/2000, "Ronnanewtons"]
POSTED BY: Peter Burbery

On "13.2.0 for Mac OS X ARM (64-bit) (November 18, 2022)" it evaluates to

Quantity[196133/2000, "Ronnanewtons"]
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract