Hello! In qalc I can do calculations using measuring units like this:

> 5 W * 3 s

  (5 watts) × (3 seconds) = 15 J

I’d like to be able to do something similar also in GNU Octave. I think the symbolic library could be a place to look at, but I found nothing “already done”. Do any of you know of a way to achieve this functionality?

You are viewing a single thread.
View all comments View context
2 points

I downloaded it and tried to run it, but it gets stuck in a loop and I don’t know how it could be fixed:

error: max_recursion_depth exceeded
error: called from
    baseUnitSystem
    <unknown>

it seems the problem is in the line

coreUnits = buildCoreUnits(u.baseUnitSystem);

in the file u.m, I think because u.baseUnitSystem tries to “call itself”. I don’t know what this should be supposed to do, and have no idea on how to possibly fix it :(

permalink
report
parent
reply
1 point

It seems that the implementation of classdev in Octave is unfortunately not complete enough yet.😒

permalink
report
parent
reply

Open Source

!opensource@lemmy.ml

Create post

All about open source! Feel free to ask questions, and share news, and interesting stuff!

Useful Links

Rules

  • Posts must be relevant to the open source ideology
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon from opensource.org, but we are not affiliated with them.

Community stats

  • 5.2K

    Monthly active users

  • 1.7K

    Posts

  • 29K

    Comments