JuliaPhysics / JuliaPhysics/Unitful.jl

Something wrong with ɛ0 and c0^3

Open
#215 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

Hi, guys! Thanks for a great package!

I've just installed it and suddenly faced what I believe is a bug.

Results of the following two snippets are different despite they are expected to be equivalent (the first result is correct, btw):

```julia
Unitful.c0*1u"c^2"*Unitful.ɛ0
> 2.3856725796184712e14 m^2 H^-1 s^-1

uconvert(u"m^2*H^-1*s^-1", Unitful.c0^3*Unitful.ɛ0)
> 4.864298731871295e7 m^2 H^-1 s^-1
```

It seems there is some issue with a conversion of c^-2 dimension.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two Julia snippets in Unitful.jl and compare the conversion paths for c^-2 dimensions. Trace the unit-conversion logic involved in c0, ɛ0, exponentiation, and uconvert; done means both expressions produce equivalent converted results.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.