Proektsoftbg / Calcpad

Free and open source software for mathematical and engineering calculations.
https://calcpad.eu
MIT License
313 stars 38 forks source link

How could fraction as unit‘s superscript be retained #242

Open idealkindom opened 6 months ago

idealkindom commented 6 months ago

For exemaple,I have unit like m/kg^(1/3), but the fraction 1/3 will be ouput as 0.33,which is not what I wanted.

Proektsoftbg commented 6 months ago

Hi! Sorry, I have no idea about this. Currently, this is not possible with Calcpad. To be honest, it never occurred to me that such units may even exist in our physical world. It is interesting, what field is this?

To make this possible in Calcpad, we need to implement fractional arithmetic. Each expression that includes rational numbers is reduced to fraction (say 2/5) and displayed in this way. This also improves precision in some cases. It is not very difficult, but will take some time.

I will add it to the wish list and leave this issue open.

idealkindom commented 6 months ago

Hi,Ned. Since you R a nuclear facilitity engineer, you know there are some structure to resist accidental explosive loading, which is always calculated with some empirical formula that are polynominal function of argument like r/w^(1/3).What I mentioned is very common in this aspect of structural engineering.You could check this.

在 2023-11-16 04:32:51,"Ned Ganchovski" @.***> 写道:

Hi! Sorry, I have no idea about this. Currently, this is not possible with Calcpad. To be honest, it never occurred to me that such units may even exist in our physical world. It is interesting, what field is this?

To make this possible in Calcpad, we need to implement fractional arithmetic. Each expression that includes rational numbers is reduced to fraction (say 2/5) and displayed in this way. This also improves precision in some cases. It is not very difficult, but will take some time.

I will add it to the wish list and leave this issue open.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>