623 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
81
views
How to take exponent of a value with units in F#?
I'm trying to write some physics equations, but I am unable to raise a value with units to some number
This is the part I have a problem with
r.Weight * 9.8<m / s^2> * (o.BarLength ** 3.)
/ (4. *...
0
votes
0
answers
21
views
How to get exact updated column name of another user in oracle trigger?
How to get exact updated column name of another user in oracle trigger?
in an multiple users (login) system in an ERP, I want to store edit/ updates of accounts system in admin block/ system, what ...
1
vote
0
answers
44
views
How do I change a measurment unit in a Simscape custom block?
I'm trying to create a custom block in Simscape that convert energy from pressurized water into a torque. Here is my code:
component pelton_turbine
% Ce composant calcule le couple généré par l'eau ...
0
votes
0
answers
44
views
Defining a new [R package units] scale in UDUNITS-2 syntax
I need to define a new (derived) unit of measure that converts Hz to the psychoacoustic scale Mel
M= 1127*ln(1 + f / 700)
where f is the frequency in Hz (and M the corresponding Mel frequency then).
...
0
votes
2
answers
27
views
Pixels to rems units conversion mixin just the value for multiply usage
Tring to get the value in rems
but got 'Missing '[...]' lookup in variable call'
@root-font-size: 16px;
.px-to-rem(@px) {
@rem: (@px / @root-font-size) * 1rem;
@rem;
}
.my-element {
font-...
1
vote
1
answer
104
views
How to plot sympy functions with units
I am trying to create a 3d plot with sympy that has units, but I am getting different errors depending on where I try to type the units in. Below the units are built in the function itself, but I get ...
2
votes
1
answer
110
views
issue with unit «knot» / «kn» with Dymola
I'm not sure but when switching to the last dymola version 2024x Refresh 1, I've lost the fact Dymola recognise the unit «kn» or «knot» (nautical mile per hour). The 2024x version used to recognise it....
0
votes
0
answers
76
views
Use ggplot2 and units package to define aesthetic mappings
I would like to create a plot where a variable (say z) defines a colour scheme for some points in a ggplot. For example:
library(ggplot2)
library(units)
#> udunits database from C:/Users/user/...
0
votes
1
answer
118
views
Correct way to add and subtract significant figures
There are actually two ways given to add or subtract significant figures in different books .In books like concepts of Physics by HC Verma it is written that round of the numbers given first and then ...
2
votes
2
answers
191
views
Custom units in HKUnit for simple measurements like mass, length, and volume
HKQuantity and HKUnit support all of the common units of measurement, SI and otherwise, such as gram(), pound(), and stone().
The HealthKit classes also support custom complex units such as "foot-...
0
votes
2
answers
132
views
in python metpy.units not recognizing degC unit for temprature (calculatinh Heat Index)
i am calculating Heat Index (temprature, relative humidity) using python . showing error for units, thats why i am not able to calculate simple heat index
import pandas as pd
from metpy.calc import ...
0
votes
3
answers
75
views
How do I fix my unit converter in python? [duplicate]
Every time I try to convert it, it only shows the conversion from in. to mm.(aka the 1st expression)I would really appreciate it if you can help because I spent a long time.
a = input('Original Amount:...
0
votes
1
answer
112
views
TinyMCE - controlling font size of deployed text (font-size using EM)
I am using TinyMCE for content management in a website, that I develop. Meaning my client can input formatted text using TinyMCE editor and the website then outputs the html to appropriate place on ...
1
vote
1
answer
63
views
Getting wrong result using unitpy?
All three of the below print same properties, but why does last statement print 0 electronvolt?
import scipy
from unitpy import U, Q, Unit, Quantity
def print_properties(q):
print(q.unit)
...
3
votes
1
answer
206
views
Is there a less verbose way of expressing duration in ms and hours?
This C++ snippet prints a duration in ms and hours:
#include <iostream>
#include <chrono>
#include <thread>
using namespace std;
using namespace std::chrono;
int main() {
auto t0 ...