Git Product home page Git Product logo

nasc's Introduction

Icon

NaSC

Do maths like a normal person

screenshot

NaSC is an app where you do maths like a normal person. It lets you type whatever you want and smartly figures out what is math and spits out an answer on the right pane. Then you can plug those answers in to future equations and if that answer changes, so does the equations it's used in.

Installation

Get it on AppCenter

nasc's People

Contributors

cassidyjames avatar decathorpe avatar fatih20 avatar lgbaldoni avatar mailaender avatar meisenzahl avatar nathanbnm avatar nick87720z avatar parnold-x avatar parnoldx avatar phw avatar pitbuster avatar quells avatar rottenpants466 avatar scx avatar streppel avatar valpackett avatar worldofpeace avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nasc's Issues

solving equations does not work.

I've tried two samples, and I get no output:

solve2( 3 * x + y = 10 ;  2 * y + x  = 12 ; x ; y)
solve(a * x = 2 ; x)

None of those work. Am I doing something wrong or is this an actual bug?

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.1 release

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.2 release

Add to `Science` category

I think it makes sense for NaSC to appear in the Science & Engineering section of AppCenter (and app menus) since it has a lot of use in science and engineering.

Sharing via PasteBin without expiry time

When I open "Sharing via PasteBin", the dialog gives me no option by default.
It still allows the user to share the sheet without choosing expiry time and it gives back an empty window no link as a result.
image
image

Can't copy single calculation on right.

Linux Manjaro - probably current app (no version is visible :( )
Example on left: (1 -0.02839446 /0.0284405) * 100
On right I see: 0.16188182

When I select on right side 0.16188182 and click copy it doesn't work (no copy)

Ok it is working when pure numbers are in input for such input it doesn't work:

#Hello World

(1 -0.02839446 /0.0284405) * 100 

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.3 release

Bug Trigonometry

Trigonometry functions do not work for angles different from zero.

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.5 release

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.4 release

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.3
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.3 release

[Packaging] libgranite3 is not available in the Ubuntu 16.04 repos

aaronfranke@aaron-xub16desk:~$ sudo apt install com.github.parnold-x.nasc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 com.github.parnold-x.nasc : Depends: libgranite3 (>= 0.2.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

aaronfranke@aaron-xub16desk:~$ sudo apt install libgranite3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libgranite3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgranite3' has no installation candidate

Options:

  1. libgranite2 does exist in the repos, so wait for Ubuntu to package libgranite3 as well.
  2. Package libgranite3 in ppa:nasc-team/daily PPA.
  3. Downgrade to libgranite2.

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.2
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.2 release

Percentage not working correctly

When i try to sum or subtract a percentage it just sum the zero dotted value to the first number.
As an example, if i do
100 - 30% = 99.7
instead of 70 as i was expecting
I'm using the 0.4.3 version.

Warnings about Debian control file

AppCenter Dashboard found some issues with your debian/control file. While we will continue
to try to build your project, we recommend you take a look and fix these
problems for next time.

  • Package is not valid reverse domain name scheme

Affects: 0.3.1 release

Dark theme

When enabling the dark theme for every window using the elementary os tweak tool, the window border and background colors are overwritten, but the text color does not change, making it really hard to read. It would be awesome if it could somehow display an alternate color palette when using the dark theme globally.

Change window opacity?

It would be nice to have a way to change the window opacity, that way I can overlay NaSC on top of my math papers

Sometimes it will crash on startup

[FATAL 09:54:10.439032] update_thread_construct: assertion 'file != NULL' failed

Thread 1 "nasc" received signal SIGSEGV, Segmentation fault.

#0 0x000000000041a84d in update_thread_ref ()
#1 0x000000000041aa8a in __lambda27_ ()
#2 0x000000000041ac8e in ___lambda27__gsource_func ()
#3 0x00007ffff590504a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4 0x00007ffff59053f0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5 0x00007ffff590549c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6 0x00007ffff75abd6d in g_application_run () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#7 0x00007ffff7b6f390 in granite_application_run () from /usr/lib/x86_64-linux-gnu/libgranite.so.3
#8 0x000000000040e3f1 in nasc_nasc_app_main ()
#9 0x000000000040e42f in main ()```

[Packaging] Provide flatpak package

I made an attempt to provide a Flatpak package for your excellent NaSC. The build files are available at https://github.com/phw/nasc-flatpak

The build is currently fine, but it requires some patching (see the patch files in the repository):

  1. Most important is patching of the app ID from com.github.parnold-x.nasc.gschema.xml to com.github.parnoldx.nasc.gschema.xml (without the dash). Flatpak doesn't allow the dash here, I filed an issue to ask on clarification on flatpak/flatpak-builder#37 .
  2. lib dir path for qcalculate, would be solved by #57
  3. Hard coded template path for qcalculate

The last two issues should be solved upstream here. For the first issue we maybe need to keep the patch.

One remaining issue that it fails to update the exchange rates on startup. Not sure why, I experimented with --share=network without luck.

I would like to submit this to flathub.org if we get the issues above sorted out. If somebody wants to test this locally you can build a local package by cloning the repository and run:

flatpak-builder --repo=repo com.github.parnoldx.nasc com.github.parnoldx.nasc.json --force-clean
flatpak build-bundle repo nasc.flatpak com.github.parnoldx.nasc
flatpak install nasc.flatpak

Then run it via the desktop icon or from command line:

flatpak run com.github.parnoldx.nasc

Conversion between numeral bases

Add the Ability to convert from Hexadecimal to Binary to Decimal.
Currently NaSC is neither able to represent binary nor able to do math with it.

Right pane background is not filled

After start right pane has contents of what is behind, but it is not transparency, as during window move contents moves too. When result is changed, it is also not cleared.

gentoo, gtk+-3.22.11, cairo-1.14.8, vala-0.34.8

upd.: in ResultView.vala alpha is set to 0, must be 100
upd2: they are double values

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.6 release

Warnings about Debian control file

AppCenter Dashboard found some issues with your debian/control file. While we will continue
to try to build your project, we recommend you take a look and fix these
problems for next time.

  • Package is not valid reverse domain name scheme

Affects: 0.3.0 release

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.5
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.5 release

How to enter e as a number?

I tried using euler but the value of that variable is .5772 etc. Using e on its own returns nothing.

I want to calculate ln e, but it returns nothing. I also tried log e. It should return 1

Auto complete parentesis

Whenver you input a "function" it should automatically input the parentesis.
For example
If I type solve and typed space it should automatically insert parentesis ()

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.0
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.0 release

Can't build libqalculatenasc

[ 23%] Performing build step for 'libqalculatenasc'
QalculateNasc.cc: In function ‘char* get_function_arguments(int)’:
QalculateNasc.cc:90:85: error: ‘transform’ was not declared in this scope
transform (str.begin(), str.end(), str.begin(), (int () (int) ) tolower);
^
QalculateNasc.cc: In function ‘char
get_function_arguments_list(int)’:
QalculateNasc.cc:114:85: error: ‘transform’ was not declared in this scope
transform (str.begin(), str.end(), str.begin(), (int (*) (int) ) tolower);
^
QalculateNasc.cc: In function ‘void abort()’:
QalculateNasc.cc:199:10: error: declaration of ‘void abort()’ has a different exception specifier
void abort() {
^~~~~
In file included from QalculateNasc.cc:3:0:
QalculateNasc.h:15:6: note: from previous declaration ‘void abort() throw ()’
void abort();
^~~~~
QalculateNasc.cc: In function ‘void abort()’:
QalculateNasc.cc:201:5: warning: ‘noreturn’ function does return
}
^
make[3]: *** [Makefile:16: QalculateNasc.o] Error 1
make[2]: *** [CMakeFiles/libqalculatenasc.dir/build.make:111: ../libqalculatenasc/src/libqalculatenasc-stamp/libqalculatenasc-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/libqalculatenasc.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.3.0 release

Assertion fail on startup

I'm on Fedora 26, tried both compiling and using a package from copr.

Output when run with -d:

[INFO 12:54:55.215602] Application.vala:153
: NaSC version: 0.4
[INFO 12:54:55.215717] Application.vala:155: Kernel version: 4.12.8-300.fc26.x86_64
[DEBUG 12:54:55.328829] Settings.vala:163: Loading settings from schema 'com.github.parnold-x.nasc'
[DEBUG 12:54:55.457685] Controller.vala:139: loading sheets
[DEBUG 12:54:55.457989] Controller.vala:159: getting sheets
[DEBUG 12:54:55.458417] Controller.vala:166: set last sheet
**
ERROR:arraylist.c:954:gee_array_list_real_get: assertion failed: (index >= 0)
[1] 11423 abort (core dumped) nasc -d

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.1
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.1 release

Changelog issues

Apphub had some issues with your changelog. We tried to fix them as best we can,
but you should take a look just in case.

0.3.0
  • No documented changes

Affects: 0.4.0 release

Feature request: comments

When doing calculations, it would be very useful for the user to be able to add comments at the end of a line in the input area, to be able to keep track of what exactly he or she is calculating. The comments would be ignored by the calculator.

I can imagine this could be implemented with a symbol such as " or // that's not otherwise used. So it might look like

1156         // daily requirement
7 * 166        // number of days
line1 * line2    // total requirement!

Accessing sheets

I can add a new sheet with the Ctrl+N shortcut, but so far I don't see any visible way to access my previous sheets. The source code suggest there is a footer toolbar. Is this not yet implemented or is it a bug that I can't see it?

Running on Arch Linux, built from source.

Failed to build with liftoff

Apphub failed to build with liftoff. Here is the log:

dpkg-checkbuilddeps: error: syntax error in debian/control at line 10: line with unknown format (not field-colon-value)
W: Unmet build-dependency in source
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package com.github.parnold-x.nasc
dpkg-buildpackage: source version 0.3.4
dpkg-buildpackage: source distribution xenial
dpkg-buildpackage: source changed by parnold-x <[email protected]>
 dpkg-source --before-build flightcheck
dpkg-source: error: syntax error in flightcheck/debian/control at line 10: line with unknown format (not field-colon-value)
dpkg-buildpackage: error: dpkg-source --before-build flightcheck gave error exit status 25

Affects: 0.3.4 release

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.